Edit

Share via


PresenceCategory Class

Definition

PresenceCategory represents the category data sent to the server.

public ref class PresenceCategory abstract
public abstract class PresenceCategory
type PresenceCategory = class
Public MustInherit Class PresenceCategory
Inheritance
PresenceCategory
Derived

Remarks

This abstract class represents the structure of a presence category published by the endpoint. Every category is identified by its name, certain common attributes such as ExpiryPolicy and custom properties (defined by extending the object).

ExpiryPolicy denotes the lifetime of this category publication. The publication can last as long as the endpoint is active, for a specified period of time, or for longer than the lifetime of the endpoint. Deleting a category is equivalent to publishing the same category with an expiry time of zero.

Constructors

PresenceCategory(PresenceCategoryWithMetaData)

Creates a new instance of the PresenceCategory class.

PresenceCategory(String)

Creates a new instance of the PresenceCategory class.

Fields

InstanceIdUnknown

Instance ID is unknown.

Properties

CategoryName

Gets the name of the category.

Methods

CreateExpiryPolicy()

Creates an expiry policy.

CreateInstanceId(RealTimeEndpoint)

Any category class where instanceId needs to be generated as custom, should override this method. In publication if instanceId is custom, then this method will be invoked.

GenerateInstanceId(String, Int32)

Generate a unique hash for an instance id for a given string identifier and number of bits, return the ID.

GenerateMD5Hash(String, Int32)
Obsolete.

Generate an MD5 hash for a given string identifier and number of bits, return the ID.

GetCategoryDataXml()

Returns the XML string represented by this category.

Applies to