Class: TalkService::SetNotificationsEnabled_args
- Inherits:
-
Object
- Object
- TalkService::SetNotificationsEnabled_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/talk_service.rb
Constant Summary collapse
- REQSEQ =
1
- TYPE =
2
- TARGET =
3
- ENABLEMENT =
4
- FIELDS =
{ REQSEQ => {:type => ::Thrift::Types::I32, :name => 'reqSeq'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::P0_a_e_a_b_ad}, TARGET => {:type => ::Thrift::Types::STRING, :name => 'target'}, ENABLEMENT => {:type => ::Thrift::Types::BOOL, :name => 'enablement'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
5692 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 5692 def struct_fields; FIELDS; end |
#validate ⇒ Object
5694 5695 5696 5697 5698 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 5694 def validate unless @type.nil? || ::P0_a_e_a_b_ad::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |