Show / Hide Table of Contents

Class CustomApiStorageDatabase<T, K>

Generic database for API response, featuring both an override or additive data implementation. This system does not support removing specific items, but upon clearing the cache, its content will be cleared off.

Inheritance
System.Object
CustomApiStorageDatabase<T, K>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Appearition.Common
Assembly: Appearition.SDK.dll
Syntax
public static class CustomApiStorageDatabase<T, K>
    where K : BaseHandler
Type Parameters
Name Description
T

Object Type

K

Handler Type

Methods

View Source

GetStoredContent()

Load the content of the database.

Declaration
public static List<T> GetStoredContent()
Returns
Type Description
System.Collections.Generic.List<T>
View Source

UpdateStorageWithNewLiveContent(List<T>)

Override the current stored content of the database with newly provided content.

Declaration
public static void UpdateStorageWithNewLiveContent(List<T> newContent)
Parameters
Type Name Description
System.Collections.Generic.List<T> newContent
View Source

UpdateStorageWithNewLiveContent(List<T>, Func<T, T, Boolean>)

Updates the content of the local database using a comparer. If no existing item was found, will add a new one. This system doesn't support removing items; but upon clearing the cache, the database will be reset.

Declaration
public static void UpdateStorageWithNewLiveContent(List<T> newContent, Func<T, T, bool> equalComparer)
Parameters
Type Name Description
System.Collections.Generic.List<T> newContent
System.Func<T, T, System.Boolean> equalComparer
  • View Source
Back to top Generated by DocFX