class Evernote::EDAM::UserStore::AuthenticationResult
When an authentication (or re-authentication) is performed, this structure provides the result to the client.
<dl>
<dt>currentTime:</dt> <dd> The server-side date and time when this result was generated. </dd> <dt>authenticationToken:</dt> <dd> Holds an opaque, ASCII-encoded token that can be used by the client to perform actions on a NoteStore. </dd> <dt>expiration:</dt> <dd> Holds the server-side date and time when the authentication token will expire. This time can be compared to "currentTime" to produce an expiration time that can be reconciled with the client's local clock. </dd> <dt>user:</dt> <dd> Holds the information about the account which was authenticated if this was a full authentication. May be absent if this particular authentication did not require user information. </dd> <dt>publicUserInfo:</dt> <dd> If this authentication result was achieved without full permissions to access the full User structure, this field may be set to give back a more limited public set of data. </dd> </dl>
Constants
- AUTHENTICATIONTOKEN
- CURRENTTIME
- EXPIRATION
- FIELDS
- PUBLICUSERINFO
- USER
Public Instance Methods
struct_fields()
click to toggle source
# File build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store_types.rb, line 110 def struct_fields; FIELDS; end
validate()
click to toggle source
# File build/evernote-mode-FpyAOB/evernote-mode-0.41/ruby/Evernote/EDAM/user_store_types.rb, line 112 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field currentTime is unset!') unless @currentTime raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authenticationToken is unset!') unless @authenticationToken raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field expiration is unset!') unless @expiration end