Show / Hide Table of Contents

Class CachedDownloadLicenseFile

Cached download license file

Inheritance
Object
CachedDownloadLicenseFile
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Pixiv.VroidSdk.Cache.DataModel
Assembly: Pixiv.VroidSdk.dll
Syntax
public sealed class CachedDownloadLicenseFile
Remarks

Discarded from oldest used cache

Constructors

CachedDownloadLicenseFile(DownloadLicense)

Constructor

Declaration
public CachedDownloadLicenseFile(DownloadLicense license)
Parameters
Type Name Description
DownloadLicense license

Download license

Properties

DownloadLicense

Download license

Declaration
public DownloadLicense DownloadLicense { get; set; }
Property Value
Type Description
DownloadLicense

FileName

File name

Declaration
public string FileName { get; }
Property Value
Type Description
String

LastAccessTime

Last access time

Declaration
public DateTime LastAccessTime { get; }
Property Value
Type Description
DateTime

Methods

IsAvailable(CharacterModel)

Determine if model can be used

Declaration
public bool IsAvailable(CharacterModel characterModel)
Parameters
Type Name Description
CharacterModel characterModel

Target model

Returns
Type Description
Boolean

Returns true if characterModel is able to be used

Remarks

Model able to be used if download license is valid, and model passed as argument is the same model

IsExpired()

Determine if download license has already expired

Declaration
public bool IsExpired()
Returns
Type Description
Boolean

Is download license expired or not

IsSameModel(CharacterModel)

Compare if the model linked to the download license is the same model

Declaration
public bool IsSameModel(CharacterModel characterModel)
Parameters
Type Name Description
CharacterModel characterModel

Target model for comparison

Returns
Type Description
Boolean

Returns true if equal

IsSameModel(DownloadLicense)

Compare if the model linked to the download license is the same model

Declaration
public bool IsSameModel(DownloadLicense otherLicense)
Parameters
Type Name Description
DownloadLicense otherLicense

Download license including target model for comparison

Returns
Type Description
Boolean

Returns true if equal

UpdateLastAccessTime()

Update last access time

Declaration
public void UpdateLastAccessTime()
Remarks

Cleared from oldest used cache, so using this method makes it harder to be cleared

In This Article
Back to top Generated by DocFX