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 => ::P0_a_e_a_b_ot},
  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



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

def struct_fields; FIELDS; end

#validateObject



17390
17391
17392
17393
17394
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17390

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