Class: MicrosoftGraph::Models::PlannerAssignedToTaskBoardTaskFormat

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/planner_assigned_to_task_board_task_format.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new plannerAssignedToTaskBoardTaskFormat and sets the default values.



19
20
21
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 19

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a planner_assigned_to_task_board_task_format

Raises:

  • (StandardError)


27
28
29
30
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 27

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return PlannerAssignedToTaskBoardTaskFormat.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



35
36
37
38
39
40
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 35

def get_field_deserializers()
    return super.merge({
        "orderHintsByAssignee" => lambda {|n| @order_hints_by_assignee = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PlannerOrderHintsByAssignee.create_from_discriminator_value(pn) }) },
        "unassignedOrderHint" => lambda {|n| @unassigned_order_hint = n.get_string_value() },
    })
end

#order_hints_by_assigneeObject

Gets the orderHintsByAssignee property value. Dictionary of hints used to order tasks on the AssignedTo view of the Task Board. The key of each entry is one of the users the task is assigned to and the value is the order hint. The format of each value is defined as outlined here.

Returns:

  • a planner_order_hints_by_assignee



45
46
47
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 45

def order_hints_by_assignee
    return @order_hints_by_assignee
end

#order_hints_by_assignee=(value) ⇒ Object

Sets the orderHintsByAssignee property value. Dictionary of hints used to order tasks on the AssignedTo view of the Task Board. The key of each entry is one of the users the task is assigned to and the value is the order hint. The format of each value is defined as outlined here.

Parameters:

  • value

    Value to set for the orderHintsByAssignee property.

Returns:

  • a void



53
54
55
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 53

def order_hints_by_assignee=(value)
    @order_hints_by_assignee = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


61
62
63
64
65
66
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 61

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("orderHintsByAssignee", @order_hints_by_assignee)
    writer.write_string_value("unassignedOrderHint", @unassigned_order_hint)
end

#unassigned_order_hintObject

Gets the unassignedOrderHint property value. Hint value used to order the task on the AssignedTo view of the Task Board when the task is not assigned to anyone, or if the orderHintsByAssignee dictionary does not provide an order hint for the user the task is assigned to. The format is defined as outlined here.

Returns:

  • a string



71
72
73
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 71

def unassigned_order_hint
    return @unassigned_order_hint
end

#unassigned_order_hint=(value) ⇒ Object

Sets the unassignedOrderHint property value. Hint value used to order the task on the AssignedTo view of the Task Board when the task is not assigned to anyone, or if the orderHintsByAssignee dictionary does not provide an order hint for the user the task is assigned to. The format is defined as outlined here.

Parameters:

  • value

    Value to set for the unassignedOrderHint property.

Returns:

  • a void



79
80
81
# File 'lib/models/planner_assigned_to_task_board_task_format.rb', line 79

def unassigned_order_hint=(value)
    @unassigned_order_hint = value
end