Class: MicrosoftGraph::Models::Presence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/presence.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#activity ⇒ Object
Gets the activity property value.
-
#activity=(value) ⇒ Object
Sets the activity property value.
-
#availability ⇒ Object
Gets the availability property value.
-
#availability=(value) ⇒ Object
Sets the availability property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new presence and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new presence and sets the default values.
49 50 51 |
# File 'lib/models/presence.rb', line 49 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
57 58 59 60 |
# File 'lib/models/presence.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Presence.new end |
Instance Method Details
#activity ⇒ Object
Gets the activity property value. The supplemental information to a user’s availability. Possible values are Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive, InAMeeting, Offline, OffWork, OutOfOffice, PresenceUnknown, Presenting, UrgentInterruptionsOnly.
19 20 21 |
# File 'lib/models/presence.rb', line 19 def activity return @activity end |
#activity=(value) ⇒ Object
Sets the activity property value. The supplemental information to a user’s availability. Possible values are Available, Away, BeRightBack, Busy, DoNotDisturb, InACall, InAConferenceCall, Inactive, InAMeeting, Offline, OffWork, OutOfOffice, PresenceUnknown, Presenting, UrgentInterruptionsOnly.
27 28 29 |
# File 'lib/models/presence.rb', line 27 def activity=(value) @activity = value end |
#availability ⇒ Object
Gets the availability property value. The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown
34 35 36 |
# File 'lib/models/presence.rb', line 34 def availability return @availability end |
#availability=(value) ⇒ Object
Sets the availability property value. The base presence information for a user. Possible values are Available, AvailableIdle, Away, BeRightBack, Busy, BusyIdle, DoNotDisturb, Offline, PresenceUnknown
42 43 44 |
# File 'lib/models/presence.rb', line 42 def availability=(value) @availability = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
65 66 67 68 69 70 |
# File 'lib/models/presence.rb', line 65 def get_field_deserializers() return super.merge({ "activity" => lambda {|n| @activity = n.get_string_value() }, "availability" => lambda {|n| @availability = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
76 77 78 79 80 81 |
# File 'lib/models/presence.rb', line 76 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("activity", @activity) writer.write_string_value("availability", @availability) end |