Class: TalkService::CreateChatRoomAnnouncement_args
- Inherits:
-
Object
- Object
- TalkService::CreateChatRoomAnnouncement_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/talk_service.rb
Constant Summary collapse
- REQSEQ =
1
- CHATROOMMID =
2
- TYPE =
3
- CONTENTS =
4
- FIELDS =
{ REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'}, CHATROOMMID => {:type => ::Thrift::Types::STRING, :name => 'chatRoomMid'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_p7}, CONTENTS => {:type => ::Thrift::Types::STRUCT, :name => 'contents', :class => ::ChatRoomAnnouncementContents} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
3076 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3076 def struct_fields; FIELDS; end |
#validate ⇒ Object
3078 3079 3080 3081 3082 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 3078 def validate unless @type.nil? || ::P0_a_e_a_b_p7::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |