Class: TalkService::CreateChatRoomAnnouncement_args

Inherits:
Object
  • Object
show all
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 => ::J0_a_e_a_b_o7},
  CONTENTS => {:type => ::Thrift::Types::STRUCT, :name => 'contents', :class => ::ChatRoomAnnouncementContents}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



3098
# File 'lib/linerb/gen-rb/talk_service.rb', line 3098

def struct_fields; FIELDS; end

#validateObject



3100
3101
3102
3103
3104
# File 'lib/linerb/gen-rb/talk_service.rb', line 3100

def validate
  unless @type.nil? || ::J0_a_e_a_b_o7::VALID_VALUES.include?(@type)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!')
  end
end