Class: Teams::Api::QuotedReplyData

Inherits:
Model
  • Object
show all
Defined in:
lib/teams/api/quoted_reply_entity.rb

Instance Attribute Summary

Attributes inherited from Model

#raw

Instance Method Summary collapse

Methods inherited from Model

#initialize

Constructor Details

This class inherits a constructor from Teams::Api::Model

Instance Method Details

#is_reply_deletedObject



26
27
28
# File 'lib/teams/api/quoted_reply_entity.rb', line 26

def is_reply_deleted
  read("isReplyDeleted", "is_reply_deleted")
end

#message_idObject



6
7
8
# File 'lib/teams/api/quoted_reply_entity.rb', line 6

def message_id
  read("messageId", "message_id")
end

#previewObject



18
19
20
# File 'lib/teams/api/quoted_reply_entity.rb', line 18

def preview
  read("preview")
end

#sender_idObject



10
11
12
# File 'lib/teams/api/quoted_reply_entity.rb', line 10

def sender_id
  read("senderId", "sender_id")
end

#sender_nameObject



14
15
16
# File 'lib/teams/api/quoted_reply_entity.rb', line 14

def sender_name
  read("senderName", "sender_name")
end

#timeObject



22
23
24
# File 'lib/teams/api/quoted_reply_entity.rb', line 22

def time
  read("time")
end

#to_hObject



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/teams/api/quoted_reply_entity.rb', line 34

def to_h
  body = {}
  body["messageId"] = message_id if message_id
  body["senderId"] = sender_id if sender_id
  body["senderName"] = sender_name if sender_name
  body["preview"] = preview if preview
  body["time"] = time if time
  body["isReplyDeleted"] = is_reply_deleted unless is_reply_deleted.nil?
  body["validatedMessageReference"] = validated_message_reference unless validated_message_reference.nil?
  body
end

#validated_message_referenceObject



30
31
32
# File 'lib/teams/api/quoted_reply_entity.rb', line 30

def validated_message_reference
  read("validatedMessageReference", "validated_message_reference")
end