Class: WiMP::Gen::WallPost
- Inherits:
-
Object
- Object
- WiMP::Gen::WallPost
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ID =
1
- PROFILEID =
2
- POSTDATE =
3
- ACTION =
4
- ARTIFACTID =
5
- ARTIFACTTITLE =
6
- ARTIFACTPARENTTITLE =
7
- FIELDS =
{ ID => {:type => ::Thrift::Types::I32, :name => 'id'}, PROFILEID => {:type => ::Thrift::Types::I32, :name => 'profileId'}, POSTDATE => {:type => ::Thrift::Types::I64, :name => 'postDate'}, ACTION => {:type => ::Thrift::Types::I32, :name => 'action'}, ARTIFACTID => {:type => ::Thrift::Types::STRING, :name => 'artifactId'}, ARTIFACTTITLE => {:type => ::Thrift::Types::STRING, :name => 'artifactTitle'}, ARTIFACTPARENTTITLE => {:type => ::Thrift::Types::STRING, :name => 'artifactParentTitle', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
967 |
# File 'lib/gen/services_types.rb', line 967 def struct_fields; FIELDS; end |
#validate ⇒ Object
969 970 971 972 973 974 975 976 |
# File 'lib/gen/services_types.rb', line 969 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field id is unset!') unless @id raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field profileId is unset!') unless @profileId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field postDate is unset!') unless @postDate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field action is unset!') unless @action raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artifactId is unset!') unless @artifactId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artifactTitle is unset!') unless @artifactTitle end |