Class RepositoryItemDescriptorCrossPlatformObject
- Namespace
- combit.Reporting.Repository
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Represents a cross-platform repository item descriptor object. Provides support for item type, folder/parent identifiers, and localized names/descriptions.
public class RepositoryItemDescriptorCrossPlatformObject
- Inheritance
-
RepositoryItemDescriptorCrossPlatformObject
- Inherited Members
Constructors
RepositoryItemDescriptorCrossPlatformObject()
public RepositoryItemDescriptorCrossPlatformObject()
RepositoryItemDescriptorCrossPlatformObject(string, string, string, DateTime?)
Initializes a new instance of RepositoryItemDescriptorCrossPlatformObject with optional metadata.
public RepositoryItemDescriptorCrossPlatformObject(string type, string folderId = null, string parentId = null, DateTime? lastModified = null)
Parameters
typestringThe repository item type (e.g., "List", "Label").
folderIdstringOptional folder Id.
parentIdstringOptional parent Id.
lastModifiedDateTime?Optional last modified date. Defaults to current UTC time if not provided.
Properties
Descriptions
public Dictionary<int, string> Descriptions { get; }
Property Value
FolderId
public string FolderId { get; set; }
Property Value
LastModified
public DateTime LastModified { get; set; }
Property Value
ParentId
public string ParentId { get; set; }
Property Value
Type
public string Type { get; set; }
Property Value
UINames
public Dictionary<int, string> UINames { get; }
Property Value
Methods
ClearUINames()
Removes all localized display names.
public void ClearUINames()
DeserializeFromJson(string)
Deserializes a JSON string into a RepositoryItemDescriptorCrossPlatformObject.
public static RepositoryItemDescriptorCrossPlatformObject DeserializeFromJson(string json)
Parameters
jsonstringThe serialized JSON string.
Returns
- RepositoryItemDescriptorCrossPlatformObject
The deserialized descriptor object.
Exceptions
- ListLabelException
Thrown if deserialization fails.
GetDescription(int)
Gets the localized description for the given locale ID.
public string GetDescription(int lcid = 0)
Parameters
lcidintThe locale ID. Defaults to 0 (neutral).
Returns
- string
The description string, or
nullif not set.
GetUIName(int)
Gets the localized display name for the given locale ID.
public string GetUIName(int lcid = 0)
Parameters
lcidintThe locale ID. Defaults to 0 (neutral).
Returns
- string
The display name for the locale, or
nullif not set.
SerializeToJson()
Serializes this descriptor object to a JSON string.
public string SerializeToJson()
Returns
- string
A JSON-formatted string representing the descriptor.
SetDescription(int, string)
Sets or removes a localized description for the specified locale ID.
public void SetDescription(int lcid, string description)
Parameters
SetUIName(int, string)
Sets or removes a localized display name for the specified locale ID.
public void SetUIName(int lcid, string name)