/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Representation of a body type.
*/
/**
* @class
* Base interface for all body type objects.
*
* @name opensocial.BodyType
*/
/**
* Base interface for all body type objects.
*
* @private
* @constructor
*/
opensocial.BodyType = function() {};
/**
* @static
* @class
* All of the fields that a body type has. These are the supported keys for the
* BodyType.getField()
* method.
*
* @name opensocial.BodyType.Field
*/
opensocial.BodyType.Field = {
/**
* The build of the person's body, specified as a string.
* Container support for this field is OPTIONAL.
* This field may be used interchangeably with the string 'build'.
* @member opensocial.BodyType.Field
*/
BUILD : 'build',
/**
* The height of the person in meters, specified as a number.
* Container support for this field is OPTIONAL.
* This field may be used interchangeably with the string 'height'.
* @member opensocial.BodyType.Field
*/
HEIGHT : 'height',
/**
* The weight of the person in kilograms, specified as a number.
* Container support for this field is OPTIONAL.
* This field may be used interchangeably with the string 'weight'.
* @member opensocial.BodyType.Field
*/
WEIGHT : 'weight',
/**
* The eye color of the person, specified as a string.
* Container support for this field is OPTIONAL.
* This field may be used interchangeably with the string 'eyeColor'.
* @member opensocial.BodyType.Field
*/
EYE_COLOR : 'eyeColor',
/**
* The hair color of the person, specified as a string.
* Container support for this field is OPTIONAL.
* This field may be used interchangeably with the string 'hairColor'.
* @member opensocial.BodyType.Field
*/
HAIR_COLOR : 'hairColor'
};
/**
* Gets data for this body type that is associated with the specified key.
*
* @param {String} key The key to get data for;
* keys are defined in
* BodyType.Field
* @param {Map.<opensocial.DataRequest.DataRequestFields, Object>}
* opt_params Additional
* params
* to pass to the request.
* @return {String} The data
*/
opensocial.BodyType.prototype.getField = function(key, opt_params) {};