Class: ContactEntry

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

USERSTATUS =
1
SNAPSHOTTIMEMILLIS =
2
CONTACT =
3
CALENDAREVENTS =
4
FIELDS =
{
  USERSTATUS => {:type => ::Thrift::Types::I32, :name => 'userStatus', :optional => true, :enum_class => ::J0_a_e_a_b_pt},
  SNAPSHOTTIMEMILLIS => {:type => ::Thrift::Types::I64, :name => 'snapshotTimeMillis', :optional => true},
  CONTACT => {:type => ::Thrift::Types::STRUCT, :name => 'contact', :class => ::Contact, :optional => true},
  CALENDAREVENTS => {:type => ::Thrift::Types::STRUCT, :name => 'calendarEvents', :class => ::ContactCalendarEvents, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



16350
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16350

def struct_fields; FIELDS; end

#validateObject



16352
16353
16354
16355
16356
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 16352

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