Added: incubator/shindig/trunk/features/opensocial-reference/phone.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-reference/phone.js?rev=616143&view=auto
==============================================================================
--- incubator/shindig/trunk/features/opensocial-reference/phone.js (added)
+++ incubator/shindig/trunk/features/opensocial-reference/phone.js Mon Jan 28 
18:31:42 2008
@@ -0,0 +1,75 @@
+/*
+ * 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 an phone number.
+ */
+
+
+/**
+ * @class
+ * Base interface for all phone objects.
+ *
+ * @name opensocial.Phone
+ */
+
+
+/**
+ * Base interface for all phone objects.
+ *
+ * @private
+ * @constructor
+ */
+opensocial.Phone = function(opt_params) {
+  this.fields_ = opt_params || {};
+};
+
+
+/**
+ * @static
+ * @class
+ * All of the fields that a phone has. These are the supported keys for the
+ * <a href="opensocial.Phone.html#getField">Phone.getField()</a> method.
+ *
+ * @name opensocial.Phone.Field
+ */
+opensocial.Phone.Field = {
+  /**
+   * The phone number type or label, specified as a String.
+   * Examples: work, my favorite store, my house, etc.
+   *
+   * @member opensocial.Phone.Field
+   */
+  TYPE : 'type',
+
+  /**
+   * The phone number, specified as a String.
+   *
+   * @member opensocial.Phone.Field
+   */
+  NUMBER : 'number'
+};
+
+
+/**
+ * Gets data for this phone that is associated with the specified key.
+ *
+ * @param {String} key The key to get data for;
+ *    keys are defined in <a href="opensocial.Phone.Field.html"><code>
+ *    Phone.Field</code></a>
+ * @return {String} The data
+ */
+opensocial.Phone.prototype.getField = function(key) {
+  return this.fields_[key];
+};

Modified: incubator/shindig/trunk/features/opensocial-reference/responseitem.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-reference/responseitem.js?rev=616143&r1=616142&r2=616143&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-reference/responseitem.js 
(original)
+++ incubator/shindig/trunk/features/opensocial-reference/responseitem.js Mon 
Jan 28 18:31:42 2008
@@ -1,4 +1,4 @@
-/**
+/*
  * 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
@@ -10,7 +10,9 @@
  * 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 ResponseItem containing information about a specific response
  * from the server.
  */

Added: incubator/shindig/trunk/features/opensocial-reference/url.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-reference/url.js?rev=616143&view=auto
==============================================================================
--- incubator/shindig/trunk/features/opensocial-reference/url.js (added)
+++ incubator/shindig/trunk/features/opensocial-reference/url.js Mon Jan 28 
18:31:42 2008
@@ -0,0 +1,82 @@
+/*
+ * 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 an url.
+ */
+
+
+/**
+ * @class
+ * Base interface for all URL objects.
+ *
+ * @name opensocial.Url
+ */
+
+
+/**
+ * Base interface for all url objects.
+ *
+ * @private
+ * @constructor
+ */
+opensocial.Url = function(opt_params) {
+  this.fields_ = opt_params || {};
+};
+
+
+/**
+ * @static
+ * @class
+ * All of the fields that a url has. These are the supported keys for the
+ * <a href="opensocial.Url.html#getField">Url.getField()</a> method.
+ *
+ * @name opensocial.Url.Field
+ */
+opensocial.Url.Field = {
+  /**
+   * The url number type or label. Examples: work, blog feed,
+   * website, etc Specified as a String.
+   *
+   * @member opensocial.Url.Field
+   */
+  TYPE : 'type',
+
+  /**
+   * The text of the link. Specified as a String.
+   *
+   * @member opensocial.Url.Field
+   */
+  LINK_TEXT : 'linkText',
+
+  /**
+   * The address the url points to. Specified as a String.
+   *
+   * @member opensocial.Url.Field
+   */
+  ADDRESS : 'address'
+};
+
+
+/**
+ * Gets data for this URL that is associated with the specified key.
+ *
+ * @param {String} key The key to get data for;
+ *    keys are defined in <a href="opensocial.Url.Field.html"><code>
+ *    Url.Field</code></a>
+ * @return {String} The data
+ */
+opensocial.Url.prototype.getField = function(key) {
+  return this.fields_[key];
+};


Reply via email to