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 => ::J0_a_e_a_b_zc}, TARGET => {:type => ::Thrift::Types::STRING, :name => 'target'}, ENABLEMENT => {:type => ::Thrift::Types::BOOL, :name => 'enablement'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
5593 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 5593 def struct_fields; FIELDS; end |
#validate ⇒ Object
5595 5596 5597 5598 5599 |
# File 'lib/linerb/gen-rb/talk_service.rb', line 5595 def validate unless @type.nil? || ::J0_a_e_a_b_zc::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |