Beamable SDK
|
Defines a storage for BeamHints. This implementation is header-based, meaning: More...
Public Member Functions | |
BeamHintStorage () | |
Creates a new BeamHintStorage instance. Makes no assumptions with respect to what types of hints will be stored here. | |
IEnumerator< BeamHint > | GetEnumerator () |
Allows iteration over storage with for-each and use of LINQ methods directly over BeamHints. | |
void | AddOrReplaceHint (BeamHintType type, string hintDomain, string uniqueId, object hintContextObj=null) |
Adds a hint to the storage. More... | |
void | AddOrReplaceHint (BeamHintHeader header, object hintContextObj=null) |
Adds a hint to the storage. More... | |
void | AddOrReplaceHints (IEnumerable< BeamHintHeader > headers, IEnumerable< object > hintContextObjs) |
Takes in two parallel IEnumerable<T> (same-length arrays) of BeamHintHeader/object pairs and add them to the storage. More... | |
void | AddOrReplaceHints (IEnumerable< BeamHint > bakedHints) |
Adds the given BeamHints. More... | |
void | RemoveHint (BeamHintHeader header) |
Removes the BeamHint identified by the header . More... | |
void | RemoveHint (BeamHint hint) |
Removes the given hint from the storage. More... | |
void | RemoveHints (IEnumerable< BeamHintHeader > headers) |
Removes the BeamHints identified by the given headers from the storage. More... | |
void | RemoveHints (IEnumerable< BeamHint > hints) |
Removes the given hints from the storage. More... | |
int | RemoveAllHints (IEnumerable< string > hintDomains, IEnumerable< string > hintIds) |
Removes all hints that Regex.Match(string) of any of the given hintDomains and hintIds . More... | |
int | RemoveAllHints (BeamHintType type) |
Remove all hints of the given type . More... | |
int | RemoveAllHints (string hintDomainRegex=".*", string idRegex=".*") |
Removes all hints that Regex.Match(string) of the given hintDomainRegex and idRegex . More... | |
BeamHint | GetHint (BeamHintHeader header) |
Given a header , returns a BeamHint containing it's associated BeamHint.ContextObject. More... | |
Defines a storage for BeamHints. This implementation is header-based, meaning:
|
inline |
Adds a hint to the storage.
header | A pre-built BeamHintHeader to add. |
hintContextObj | Any arbitrary data that you wish to tie to the hint. |
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Adds a hint to the storage.
type | The type of hint that it is. |
originSystem | The system that originated this hint. |
hintDomain | An arbitrary contextual grouping for the hint. |
uniqueId | An id, unique when combined with hintDomain , that identifies the hint. |
hintContextObj | Any arbitrary data that you wish to tie to the hint. |
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Adds the given BeamHints.
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Takes in two parallel IEnumerable<T> (same-length arrays) of BeamHintHeader/object pairs and add them to the storage.
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Given a header , returns a BeamHint containing it's associated BeamHint.ContextObject.
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Remove all hints of the given type .
type | The BeamHintTypes to remove. |
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes all hints that Regex.Match(string) of any of the given hintDomains and hintIds .
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes all hints that Regex.Match(string) of the given hintDomainRegex and idRegex .
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes the given hint from the storage.
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes the BeamHint identified by the header .
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes the given hints from the storage.
Implements Beamable.Common.Assistant.IBeamHintStorage.
|
inline |
Removes the BeamHints identified by the given headers from the storage.
Implements Beamable.Common.Assistant.IBeamHintStorage.