Public Member Functions | |
| void | AddActivity (Linphone.PresenceActivity activity) |
| void | AddNote (string noteContent, string lang) |
| void | AddPerson (Linphone.PresencePerson person) |
| void | AddService (Linphone.PresenceService service) |
| void | ClearActivities () |
| void | ClearNotes () |
| void | ClearPersons () |
| void | ClearServices () |
| float | GetCapabilityVersion (Linphone.FriendCapability capability) |
| Linphone.PresenceNote | GetNote (string lang) |
| Linphone.PresenceActivity | GetNthActivity (uint index) |
| Linphone.PresencePerson | GetNthPerson (uint index) |
| Linphone.PresenceService | GetNthService (uint index) |
| bool | HasCapability (Linphone.FriendCapability capability) |
| bool | HasCapabilityWithVersion (Linphone.FriendCapability capability, float version) |
| bool | HasCapabilityWithVersionOrMore (Linphone.FriendCapability capability, float version) |
| void | SetActivity (Linphone.PresenceActivityType activity, string description) |
Static Public Member Functions | |
| static Linphone.PresenceModel | NewWithActivity (Linphone.PresenceActivityType activity, string description) |
| static Linphone.PresenceModel | NewWithActivityAndNote (Linphone.PresenceActivityType activity, string description, string note, string lang) |
| static Linphone.PresenceModel | NewWithConsolidatedPresence (Linphone.ConsolidatedPresence presence) |
Properties | |
| Linphone.PresenceActivity | Activity [get] |
| Linphone.PresenceBasicStatus | BasicStatus [get, set] |
| int | Capabilities [get] |
| Linphone.ConsolidatedPresence | ConsolidatedPresence [get] |
| string | Contact [get, set] |
| bool | IsOnline [get] |
| long | LatestActivityTimestamp [get] |
| uint | NbActivities [get] |
| uint | NbPersons [get] |
| uint | NbServices [get] |
| Linphone.Address | Presentity [get, set] |
| long | Timestamp [get] |
Additional Inherited Members | |
Protected Member Functions inherited from Linphone.LinphoneObject | |
| static String | linphone_pointer_to_string (IntPtr ptr) |
| static IntPtr | linphone_string_to_pointer ([MarshalAs(LinphoneWrapper.ByteStringMarshalling)] String str) |
| IntPtr | StringArrayToBctbxList (IEnumerable< string > stringlist) |
| void | CleanStringArrayPtrs (IntPtr l) |
Presence model type holding information about the presence of a person.
|
inline |
Adds an activity to a presence model.
| activity | The Linphone.PresenceActivity object to add to the model. |
|
inline |
Adds a note to a presence model.
| noteContent | The note to be added to the presence model. |
| lang | The language of the note to be added. Can be null if no language is to be specified for the note. |
Only one note for each language can be set, so e.g. setting a note for the 'fr' language if there is only one will replace the existing one.
|
inline |
Adds a person to a presence model.
| person | The Linphone.PresencePerson object to add to the model. |
|
inline |
Adds a service to a presence model.
| service | The Linphone.PresenceService object to add to the model. |
|
inline |
Clears the activities of a presence model.
|
inline |
Clears all the notes of a presence model.
|
inline |
Clears the persons of a presence model.
|
inline |
Clears the services of a presence model.
|
inline |
Returns the version of the capability of a Linphone.PresenceModel.
| capability | The Linphone.FriendCapability to test. |
|
inline |
Gets the first note of a presence model (there is usually only one).
| lang | The language of the note to get. Can be null to get a note that has no language specified or to get the first note whatever language it is written into. |
|
inline |
Gets the nth activity of a presence model.
| index | The index of the activity to get (the first activity having the index 0). |
|
inline |
Gets the nth person of a presence model.
| index | The index of the person to get (the first person having the index 0). |
|
inline |
Gets the nth service of a presence model.
| index | The index of the service to get (the first service having the index 0). |
|
inline |
Returns whether or not the Linphone.PresenceModel object has a given capability.
| capability | The capability to test. |
|
inline |
Returns whether or not the Linphone.PresenceModel object has a given capability with a certain version.
| capability | The Linphone.FriendCapability to test. |
| version | The wanted version to test. |
|
inline |
Returns whether or not the Linphone.PresenceModel object has a given capability with a certain version or more.
| capability | The Linphone.FriendCapability to test. |
| version | The wanted version to test. |
|
inlinestatic |
Creates a presence model specifying an activity.
| activity | The Linphone.PresenceActivityType to set for the created presence model. |
| description | An additional description of the activity (mainly useful for the 'other' activity). Set it to null to not add a description. |
See : linphone_presence_model_new, Linphone.PresenceModel.NewWithActivityAndNote(), Linphone.PresenceModel.NewWithConsolidatedPresence()
The created presence model has the activity specified in the parameters.
|
inlinestatic |
Creates a presence model specifying an activity and adding a note.
| activity | The Linphone.PresenceActivityType to set for the created presence model. |
| description | An additional description of the activity (mainly useful for the 'other' activity). Set it to null to not add a description. |
| note | An additional note giving additional information about the contact presence. |
| lang | The language the note is written in. It can be set to null in order to not specify the language of the note. |
See : linphone_presence_model_new, Linphone.PresenceModel.NewWithActivity(), Linphone.PresenceModel.NewWithConsolidatedPresence()
The created presence model has the activity and the note specified in the parameters.
|
inlinestatic |
Creates a presence model with a consolidated presence.
| presence | The Linphone.ConsolidatedPresence to set for the created presence model. |
Warning : This function will set the basic status of the model and it may create an activity depending on the Linphone.ConsolidatedPresence
See : linphone_presence_model_new, Linphone.PresenceModel.NewWithActivity(), Linphone.PresenceModel.NewWithActivityAndNote()
The created presence model has the activity specified in the parameters.
|
inline |
Sets the activity of a presence model (limits to only one activity).
| activity | The Linphone.PresenceActivityType to set for the model. |
| description | An additional description of the activity to set for the model. Can be null if no additional description is to be added. |
Warning : This function will modify the basic status of the model according to the activity being set. If you don't want the basic status to be modified automatically, you can use the combination of Linphone.PresenceModel.BasicStatus, Linphone.PresenceModel.ClearActivities() and Linphone.PresenceModel.AddActivity().
|
get |
Gets the first activity of a presence model (there is usually only one).
|
getset |
Gets the basic status of a presence model.
|
get |
Gets the capabilities of a Linphone.PresenceModel object.
|
get |
Get the consolidated presence from a presence model.
|
getset |
Gets the contact of a presence model.
The returned string is to be freed by calling ms_free().
|
get |
Tells whether a presence model is considered online.
It is any of theses cases: -basic status is'open' and no activities -explicit 'online' tag in the status
|
get |
Gets the latest activity timestamp of a presence model.
|
get |
Gets the number of activities included in the presence model.
|
get |
Gets the number of persons included in the presence model.
|
get |
Gets the number of services included in the presence model.
|
getset |
Gets the presentity of a presence model.
|
get |
Gets the timestamp of a presence model.