Msg.Contact

g GObject.Object GObject.Object Msg.Contact Msg.Contact GObject.Object->Msg.Contact

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_from_json (json_object)

get_given_name ()

get_id ()

get_name ()

get_surname ()

set_given_name (given_name)

set_surname (surname)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Msg.Contact(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Msg.ContactClass

Handling of contact specific functions.

Details: https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0

classmethod new()
Returns:

the newly created MsgContact

Return type:

Msg.Contact

Creates a new MsgContact.

classmethod new_from_json(json_object)
Parameters:

json_object (Json.Object) – The json object to parse

Raises:

GLib.Error

Returns:

the newly created MsgContact

Return type:

Msg.Contact

Creates a new MsgContact from json response object.

get_given_name()
Returns:

given name

Return type:

str

Gets given name.

get_id()
Returns:

identifier

Return type:

str

Gets ID

get_name()
Returns:

name of contact

Return type:

str

get_surname()
Returns:

surname

Return type:

str

Gets surname.

set_given_name(given_name)
Parameters:

given_name (str) – new give name

Sets contacts given name

set_surname(surname)
Parameters:

surname (str) – new sirname

Sets contacts surname