Class: Teams::Api::QuotedReplyData
- Inherits:
-
Model
- Object
- Model
- Teams::Api::QuotedReplyData
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
Instance Method Details
#is_reply_deleted ⇒ Object
26
27
28
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 26
def is_reply_deleted
read("isReplyDeleted", "is_reply_deleted")
end
|
#message_id ⇒ Object
6
7
8
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 6
def message_id
read("messageId", "message_id")
end
|
#preview ⇒ Object
18
19
20
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 18
def preview
read("preview")
end
|
#sender_id ⇒ Object
10
11
12
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 10
def sender_id
read("senderId", "sender_id")
end
|
#sender_name ⇒ Object
14
15
16
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 14
def sender_name
read("senderName", "sender_name")
end
|
#time ⇒ Object
22
23
24
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 22
def time
read("time")
end
|
#to_h ⇒ Object
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_reference ⇒ Object
30
31
32
|
# File 'lib/teams/api/quoted_reply_entity.rb', line 30
def validated_message_reference
read("validatedMessageReference", "validated_message_reference")
end
|