Interface ITagService
Assembly: cs.temp.dll.dll
public interface ITagService : IService
Methods
Whether or not all tagsToCheckFor
exist in the tags
.
Declaration
bool ContainsAllTags(ITagData[] tags, ITagData[] tagsToCheckFor)
Parameters
Returns
Whether or not the Tag Ids specified via tagIdsToCheckFor
exists in the tags
.
Declaration
bool ContainsAllTags(ITagData[] tags, string[] tagIdsToCheckFor)
Parameters
Returns
Whether or not any tagsToCheckFor
exist in the tags
.
Declaration
bool ContainsAnyTags(ITagData[] tags, ITagData[] tagsToCheckFor)
Parameters
Returns
Whether or not any the Tag Ids specified via tagIdsToCheckFor
exist in the tags
.
Declaration
bool ContainsAnyTags(ITagData[] tags, string[] tagIdsToCheckFor)
Parameters
Returns
Whether or not the given tagToCheckFor
exists in the tags
.
Declaration
bool ContainsTag(ITagData[] tags, ITagData tagToCheckFor)
Parameters
Returns
Whether or not the given Tag Id specified via tagIdToCheckFor
exists in the tags
.
Declaration
bool ContainsTag(ITagData[] tags, string tagIdToCheckFor)
Parameters
Returns
Checks whether the array of ITagData within tagsToCheckFor
exist within tags
.
Declaration
bool ContainsTargetTags(ITagData[] tags, ITagData[] tagsToCheckFor, bool requireAll)
Parameters
Returns
Checks whether the array of Tag Ids specified via tagIdsToCheckFor
exist within tags
.
Declaration
bool ContainsTargetTags(ITagData[] tags, string[] tagIdsToCheckFor, bool requireAll)
Parameters
Returns
Declaration
ITagData GetTag(string id)
Parameters
Type |
Name |
Description |
String |
id |
|
Returns
Declaration
T[] GetTaggedEntitiesWithAllTags<T>(ITagData[] tagsToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
ITagData[] |
tagsToCheckFor |
|
Returns
Type Parameters
Returns IEntitys of the type T
which contain all of the tag Ids specified via tagIdsToCheckFor
.
The IEntity must implement ITaggedEntity.
Declaration
T[] GetTaggedEntitiesWithAllTags<T>(string[] tagIdsToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
String[] |
tagIdsToCheckFor |
|
Returns
Type Parameters
Declaration
T[] GetTaggedEntitiesWithAnyTags<T>(ITagData[] tagsToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
ITagData[] |
tagsToCheckFor |
|
Returns
Type Parameters
Returns IEntitys of the type T
which contain any of the tag Ids specified via tagIdsToCheckFor
.
The IEntity must implement ITaggedEntity.
Declaration
T[] GetTaggedEntitiesWithAnyTags<T>(string[] tagIdsToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
String[] |
tagIdsToCheckFor |
|
Returns
Type Parameters
Declaration
T[] GetTaggedEntitiesWithTag<T>(ITagData tagToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
ITagData |
tagToCheckFor |
|
Returns
Type Parameters
Declaration
T[] GetTaggedEntitiesWithTag<T>(string tagToCheckFor)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
String |
tagToCheckFor |
|
Returns
Type Parameters
Declaration
T[] GetTaggedEntitiesWithTags<T>(ITagData[] tagsToCheckFor, bool requireAll)
where T : class, ITaggedEntity
Parameters
Returns
Type Parameters
When passing tagsToCheckFor
containing "Business" + "Rare", only ITaggedEntity objects that contain
both "Business" and "Rare" tags will be returned when requireAll
is true. If requireAll
is false then any ITaggedEntity that contains either "Business" or "Rare" tags will be returned.
Declaration
T[] GetTaggedEntitiesWithTags<T>(string[] tagIdsToCheckFor, bool requireAll)
where T : class, ITaggedEntity
Parameters
Type |
Name |
Description |
String[] |
tagIdsToCheckFor |
|
Boolean |
requireAll |
|
Returns
Type Parameters
When passing tagIdsToCheckFor
containing "Business" + "Rare", only ITaggedEntity objects that contain
both "Business" and "Rare" tags will be returned when requireAll
is true. If requireAll
is false then any ITaggedEntity that contains either "Business" or "Rare" tags will be returned.
Returns an array of ITagData specified by ids
Declaration
ITagData[] GetTags(string[] ids)
Parameters
Type |
Name |
Description |
String[] |
ids |
|
Returns