72 Commits

Author SHA1 Message Date
Kirill Zdornyy ad2a7a5fe6 Release 1.0.0. 2014-01-02 14:41:04 -08:00
Kirill Zdornyy 7c4832f4a5 Update UPPlatformSDK.framework in HelloUP. 2013-12-04 17:23:24 -08:00
Kirill Zdornyy 673c0fd8a9 Merge branch 'master' of github.com:Jawbone/UPPlatform_iOS_SDK 2013-12-04 17:22:01 -08:00
Kirill Zdornyy 59e400046a Update UPPlatformSDK.framework with new header file method documentation. 2013-12-04 17:21:56 -08:00
Kirill Zdornyy 530611d987 Update README.md with documentation for cardiac, body and generic events. 2013-12-04 17:16:38 -08:00
Kirill Zdornyy c88d058843 Document header file methods for generic event API. 2013-12-04 16:48:47 -08:00
Kirill Zdornyy a9141ef2d1 Document the body event API header file methods. 2013-12-04 16:43:58 -08:00
Kirill Zdornyy b5111d6b96 Document cardiac event header file method declarations. 2013-12-04 16:36:47 -08:00
Kirill Zdornyy 967f386bfd Merge branch 'master' of github.com:Jawbone/UPPlatform_iOS_SDK 2013-12-04 16:15:51 -08:00
Kirill Zdornyy 01064ea782 Add missing plist file in HelloUP. 2013-12-04 16:15:46 -08:00
Kirill Zdornyy 7246ace579 Update UPPlatformSDK.framework in the HelloUP sample app. 2013-12-04 16:15:01 -08:00
Kirill Zdornyy 74b4b9230a Update README.md with custom URI instructions. 2013-12-04 15:30:24 -08:00
Kirill Zdornyy fa247a94d1 Update UPPlatformSDK.framework. 2013-12-04 15:21:17 -08:00
Andy Roth 7a774e7cc1 Add configurable redirect URI to authentication 2013-12-04 14:10:18 -08:00
Kirill Zdornyy 0871b81a3d Update README.md with new platform links. 2013-12-04 12:02:31 -08:00
Kirill Zdornyy dde1c45c29 Update README.md. 2013-11-21 17:02:14 -08:00
Kirill Zdornyy ea4a3096b8 Update README.md image and photo links. 2013-11-21 17:01:45 -08:00
Kirill Zdornyy 43cbb392ea Add links for support, API status and TOS to README.md. 2013-11-21 12:25:55 -08:00
Kirill Zdornyy 736f5d6a76 Change project settings for building SDK for 64-bit architecture. 2013-11-21 12:17:48 -08:00
Kirill Zdornyy 02cb7676ea Final cleanup on README.md. 2013-11-21 12:08:12 -08:00
Kirill Zdornyy dbf50a2f89 Update UPPlatformSDK.framework with fix for #7. 2013-11-17 10:48:54 -05:00
Kirill Zdornyy 1d6edf8f6c Fix UIWebView memory leak in iOS 7. Closes #7.
Also update Xcode project settings for the SDK.
2013-11-17 10:44:48 -05:00
Kirill Zdornyy 5a04a314a7 Replace missing classes and headers. 2013-11-16 13:37:10 -05:00
Kirill Zdornyy c0ce01d7b7 Update README.md with links to .framework and git clone. 2013-11-15 15:11:35 -05:00
Kirill Zdornyy 64edfdd6a7 Update README.md 2013-11-15 12:31:26 -05:00
Kirill Zdornyy b5b6c66c8e Create LICENSE 2013-11-15 12:24:55 -05:00
Kirill Zdornyy 1d6b57bb88 Update README.md with license info. 2013-11-15 12:24:03 -05:00
Kirill Zdornyy 9408b2ee07 Search for Framework in SRCROOT. 2013-11-15 12:19:05 -05:00
Kirill Zdornyy 91ec7f2a7e Make Xcode search for the framework in project root. Update OAuth key. 2013-11-15 12:17:45 -05:00
Kirill Zdornyy ba919ac0d7 Update README.md with Framework instructions. 2013-11-15 11:58:19 -05:00
Kirill Zdornyy f73beb26ee Add Framework snapshots. 2013-11-15 11:50:56 -05:00
Kirill Zdornyy 724a33b8fe Add very basic app HelloUP. 2013-11-15 11:46:06 -05:00
Kirill Zdornyy 1c13cbbc42 Remove legacy sample app.
Will be replaced with a new simple HelloUP.
2013-11-15 10:35:34 -05:00
Kirill Zdornyy e0842bb62c Update README.md. 2013-11-15 10:34:30 -05:00
Kirill Zdornyy f5a81894e2 Update UPPlatformSDK.framework. 2013-11-15 10:33:02 -05:00
Andy Roth c90038459f Remove separate platform bundle 2013-11-13 12:20:53 -08:00
Kirill Zdornyy e0c1d7001f Fix category linker issues in .framework. 2013-11-13 11:57:21 -08:00
Kirill Zdornyy 9d6bda4331 Make .framework 64-bit 2013-11-13 11:22:25 -08:00
Kirill Zdornyy d6ffafaacb Add UPPlatformSDK.framework 2013-11-13 11:11:38 -08:00
Kirill Zdornyy 9962391173 Fix formatting in README.md. 2013-11-08 13:35:31 -08:00
Kirill Zdornyy cb208bbe0c Add Obj-C formatting to README.md. 2013-11-07 17:24:57 -08:00
Kirill Zdornyy 6c6c112118 Update README.md with more polish. 2013-11-07 17:22:44 -08:00
Kirill Zdornyy ac4648a538 Update README.md with more details developers site instructions. 2013-11-07 17:02:56 -08:00
Kirill Zdornyy c52323b380 Add a snapshot of the developer account page. 2013-11-07 16:41:22 -08:00
Kirill Zdornyy 6f482202b1 Update README.md with how to obtain OAuth creds. 2013-11-01 10:29:11 -07:00
Kirill Zdornyy 6df13353d5 Add instructions for running XCTest unit tests to README.md. 2013-10-30 20:10:57 -07:00
Kirill Zdornyy fc56080d08 Add the inaugural XCTest unit test. 2013-10-30 20:01:38 -07:00
Kirill Zdornyy d70ae1152c Update README.md. 2013-10-30 11:40:19 -07:00
Kirill Zdornyy f627a83d43 Add workout graph to documentation. 2013-10-30 11:38:52 -07:00
Kirill Zdornyy a68e00fdae Update README.md with more cleanup. 2013-10-30 11:37:28 -07:00
Kirill Zdornyy 8cf7dbe4a4 Update more content in README.md. 2013-10-30 10:12:16 -07:00
Kirill Zdornyy 6caab97b74 Add moves and sleep samples images. 2013-10-29 18:05:15 -07:00
Kirill Zdornyy 1a180128d5 Update README.md with Contributors. 2013-10-29 17:46:57 -07:00
Kirill Zdornyy 524806706a Add sample code for UPUser class and update navigation. 2013-10-29 17:37:02 -07:00
Kirill Zdornyy e7412020d5 Add sample code for Mood in README.md. 2013-10-29 17:23:28 -07:00
Kirill Zdornyy be264bbaae Add sample code for moves in README.md. 2013-10-29 16:09:21 -07:00
Kirill Zdornyy 540f8ca4b1 Add sample code for workout methods in README.md. 2013-10-29 16:01:37 -07:00
Kirill Zdornyy 8ae3681900 Finish meal code samples in README.md. 2013-10-29 15:42:57 -07:00
Kirill Zdornyy 39787eeedf Update README.md with documentation on creating a new meal. 2013-10-29 15:25:17 -07:00
Kirill Zdornyy 784957cff1 Update UPMoodAPI.h with documentation for methods and properties. 2013-10-29 15:02:18 -07:00
Kirill Zdornyy 9e72e106d7 Update UPMoveAPI.h with method and property documentation. 2013-10-29 14:37:40 -07:00
Kirill Zdornyy 8a82c00e05 Update UPWorkoutAPI.h with method and property documentation. 2013-10-29 14:26:19 -07:00
Kirill Zdornyy c26b14f81a Update UPSleepAPI.h with method and property documentation. 2013-10-29 12:46:42 -07:00
Kirill Zdornyy 33678fd37b Update UPMealAPI.h with Xcode 5 style documentation.
Add preliminary documentation for most of the methods and properties.
2013-10-29 12:07:22 -07:00
Kirill Zdornyy 923c417204 Update README.md.
Add a tentative table of contents.
2013-10-28 14:59:17 -07:00
Kirill Zdornyy 65c5eea829 Update README.md
Add a very rough "getting started" section for iOS development.
2013-10-28 13:04:46 -07:00
Kirill Zdornyy d06f06b556 Update .gitignore.
Copy .gitignore contents from GitHub's Objective-C template found at https://github.com/github/gitignore/blob/master/Objective-C.gitignore. I left out the Cocoapods stuff.
2013-10-24 20:10:29 -07:00
Kirill Zdornyy aa9f09bae3 Update README.md
Added a list of things that we could potentially cover here. Still a work in progress.
2013-10-24 18:49:59 -07:00
Andy Roth c5964f989b Fixes to support iOS 7, Mavericks, and Xcode 5 2013-10-24 15:21:59 -07:00
Andy Roth 928bf89c18 Ignore .DS_Store 2013-06-28 12:26:17 -07:00
Andy Roth e8102cc2ee Initial commit 2013-06-28 12:22:28 -07:00
Andy Roth b01ba7537f Initial commit 2013-06-28 12:17:36 -07:00
193 changed files with 9039 additions and 29916 deletions
+17
View File
@@ -0,0 +1,17 @@
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
-447
View File
@@ -1,447 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>NSDate(UPPlatform) Category Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">NSDate(UPPlatform) Category Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/dateFromDayInt:">&nbsp;&nbsp;&nbsp;&nbsp;+ dateFromDayInt:</option>
<option value="//api/name/dateFromDayInt:inTimeZone:">&nbsp;&nbsp;&nbsp;&nbsp;+ dateFromDayInt:inTimeZone:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/dayIntString">&nbsp;&nbsp;&nbsp;&nbsp;- dayIntString</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateFromDayInt:">dateFromDayInt:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dateFromDayInt:inTimeZone:">dateFromDayInt:inTimeZone:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dayIntString">dayIntString</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="NSDate(UPPlatform) Category Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">NSDate(UPPlatform) Category Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">NSDate+UPPlatform.h<br />NSDate+UPPlatform.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Date helper methods.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/dateFromDayInt:inTimeZone:">+&nbsp;dateFromDayInt:inTimeZone:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/dateFromDayInt:">+&nbsp;dateFromDayInt:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/dayIntString">&ndash;&nbsp;dayIntString</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/dateFromDayInt:" title="dateFromDayInt:"></a>
<h3 class="subsubtitle method-title">dateFromDayInt:</h3>
<div class="method-subsection brief-description">
<p>Creates a date object from a day integer in the user&rsquo;s local timezone. (i.e. 20140215)</p>
</div>
<div class="method-subsection method-declaration"><code>+ (NSDate *)dateFromDayInt:(NSUInteger)<em>dayInt</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>dayInt</em></dt>
<dd><p>The day integer to convert to a date.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a date object from a day integer in the user&rsquo;s local timezone. (i.e. 20140215)</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">NSDate+UPPlatform.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/dateFromDayInt:inTimeZone:" title="dateFromDayInt:inTimeZone:"></a>
<h3 class="subsubtitle method-title">dateFromDayInt:inTimeZone:</h3>
<div class="method-subsection brief-description">
<p>Creates a date object from a day integer (i.e. 20140215)</p>
</div>
<div class="method-subsection method-declaration"><code>+ (NSDate *)dateFromDayInt:(NSUInteger)<em>dayInt</em> inTimeZone:(NSTimeZone *)<em>timezone</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>dayInt</em></dt>
<dd><p>The day integer to convert to a date.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>timezone</em></dt>
<dd><p>The timezone used to convert the date.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a date object from a day integer (i.e. 20140215)</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">NSDate+UPPlatform.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/dayIntString" title="dayIntString"></a>
<h3 class="subsubtitle method-title">dayIntString</h3>
<div class="method-subsection brief-description">
<p>The current date represented as a day integer string.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSString *)dayIntString</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The current date represented as a day integer string.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">NSDate+UPPlatform.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-415
View File
@@ -1,415 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBandEvent Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBandEvent Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/actionType">&nbsp;&nbsp;&nbsp;&nbsp;actionType</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/actionType">actionType</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBandEvent Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBandEvent Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBandEventAPI.h<br />UPBandEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>An UP24 hardware band event, which includes entering and exiting both sleep mode and stopwatch (workout) mode.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/actionType">&nbsp;&nbsp;actionType</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/actionType" title="actionType"></a>
<h3 class="subsubtitle method-title">actionType</h3>
<div class="method-subsection brief-description">
<p>The action type of the band event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPBandEventActionType actionType</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The action type of the band event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBandEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-330
View File
@@ -1,330 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBandEventAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBandEventAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/getBandEventsFromStartDate:toEndDate:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getBandEventsFromStartDate:toEndDate:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getBandEventsFromStartDate:toEndDate:completion:">getBandEventsFromStartDate:toEndDate:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBandEventAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBandEventAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBandEventAPI.h<br />UPBandEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for getting UP24 band events.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getBandEventsFromStartDate:toEndDate:completion:">+&nbsp;getBandEventsFromStartDate:toEndDate:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/getBandEventsFromStartDate:toEndDate:completion:" title="getBandEventsFromStartDate:toEndDate:completion:"></a>
<h3 class="subsubtitle method-title">getBandEventsFromStartDate:toEndDate:completion:</h3>
<div class="method-subsection brief-description">
<p>Request band events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getBandEventsFromStartDate:(NSDate *)<em>startDate</em> toEndDate:(NSDate *)<em>endDate</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>startDate</em></dt>
<dd><p>The earliest date to fetch band events from.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>endDate</em></dt>
<dd><p>The date up to which to fetch band events to.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request band events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBandEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-716
View File
@@ -1,716 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBaseEvent Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBaseEvent Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/date">&nbsp;&nbsp;&nbsp;&nbsp;date</option>
<option value="//api/name/timeCreated">&nbsp;&nbsp;&nbsp;&nbsp;timeCreated</option>
<option value="//api/name/timeUpdated">&nbsp;&nbsp;&nbsp;&nbsp;timeUpdated</option>
<option value="//api/name/timeZone">&nbsp;&nbsp;&nbsp;&nbsp;timeZone</option>
<option value="//api/name/title">&nbsp;&nbsp;&nbsp;&nbsp;title</option>
<option value="//api/name/xid">&nbsp;&nbsp;&nbsp;&nbsp;xid</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/date">date</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timeCreated">timeCreated</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timeUpdated">timeUpdated</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timeZone">timeZone</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/title">title</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/xid">xid</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBaseEvent Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBaseEvent Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBaseEventAPI.h<br />UPBaseEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The base class for events in the UP platform.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/xid">&nbsp;&nbsp;xid</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/title">&nbsp;&nbsp;title</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/date">&nbsp;&nbsp;date</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timeCreated">&nbsp;&nbsp;timeCreated</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timeUpdated">&nbsp;&nbsp;timeUpdated</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timeZone">&nbsp;&nbsp;timeZone</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/date" title="date"></a>
<h3 class="subsubtitle method-title">date</h3>
<div class="method-subsection brief-description">
<p>The date the event occurred.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *date</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The date the event occurred.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timeCreated" title="timeCreated"></a>
<h3 class="subsubtitle method-title">timeCreated</h3>
<div class="method-subsection brief-description">
<p>The time the event was created.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *timeCreated</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The time the event was created.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timeUpdated" title="timeUpdated"></a>
<h3 class="subsubtitle method-title">timeUpdated</h3>
<div class="method-subsection brief-description">
<p>The time the event was last updated.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *timeUpdated</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The time the event was last updated.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timeZone" title="timeZone"></a>
<h3 class="subsubtitle method-title">timeZone</h3>
<div class="method-subsection brief-description">
<p>The time zone the event was created.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSTimeZone *timeZone</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The time zone the event was created.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/title" title="title"></a>
<h3 class="subsubtitle method-title">title</h3>
<div class="method-subsection brief-description">
<p>The title of the event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *title</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The title of the event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/xid" title="xid"></a>
<h3 class="subsubtitle method-title">xid</h3>
<div class="method-subsection brief-description">
<p>The unique identifier of the event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *xid</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The unique identifier of the event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-594
View File
@@ -1,594 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBaseEventAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBaseEventAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteEvent:completion:</option>
<option value="//api/name/getEventsOfType:destinationClass:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getEventsOfType:destinationClass:completion:</option>
<option value="//api/name/postEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postEvent:completion:</option>
<option value="//api/name/refreshEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshEvent:completion:</option>
<option value="//api/name/updateEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ updateEvent:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteEvent:completion:">deleteEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getEventsOfType:destinationClass:completion:">getEventsOfType:destinationClass:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postEvent:completion:">postEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshEvent:completion:">refreshEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/updateEvent:completion:">updateEvent:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBaseEventAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBaseEventAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBaseEventAPI.h<br />UPBaseEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The base event API provides a common interface for event management.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getEventsOfType:destinationClass:completion:">+&nbsp;getEventsOfType:destinationClass:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postEvent:completion:">+&nbsp;postEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/updateEvent:completion:">+&nbsp;updateEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshEvent:completion:">+&nbsp;refreshEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteEvent:completion:">+&nbsp;deleteEvent:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteEvent:completion:" title="deleteEvent:completion:"></a>
<h3 class="subsubtitle method-title">deleteEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Deletes a single event from the UP platform.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteEvent:(UPBaseEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>The event to DELETE.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>The completion block, which provides the result, full response, and error.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Deletes a single event from the UP platform.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getEventsOfType:destinationClass:completion:" title="getEventsOfType:destinationClass:completion:"></a>
<h3 class="subsubtitle method-title">getEventsOfType:destinationClass:completion:</h3>
<div class="method-subsection brief-description">
<p>Gets events of a specific type.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getEventsOfType:(NSString *)<em>type</em> destinationClass:(Class)<em>destClass</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>type</em></dt>
<dd><p>The API type used in the GET request (i.e. moves, sleeps)</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>destClass</em></dt>
<dd><p>The destination class to map the resulting objects</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>The completion block, which provides the result, full response, and error.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets events of a specific type.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postEvent:completion:" title="postEvent:completion:"></a>
<h3 class="subsubtitle method-title">postEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Posts a new event to the UP platform.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postEvent:(UPBaseEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>The event to POST.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>The completion block, which provides the result, full response, and error.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Posts a new event to the UP platform.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshEvent:completion:" title="refreshEvent:completion:"></a>
<h3 class="subsubtitle method-title">refreshEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Requests a single event, based on an xid.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshEvent:(UPBaseEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>The event to GET.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>The completion block, which provides the result, full response, and error.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Requests a single event, based on an xid.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/updateEvent:completion:" title="updateEvent:completion:"></a>
<h3 class="subsubtitle method-title">updateEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Updates an existing event on the UP platform.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)updateEvent:(UPBaseEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>The event to POST.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>The completion block, which provides the result, full response, and error.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Updates an existing event on the UP platform.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-814
View File
@@ -1,814 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBodyEvent Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBodyEvent Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/bmi">&nbsp;&nbsp;&nbsp;&nbsp;bmi</option>
<option value="//api/name/bodyFat">&nbsp;&nbsp;&nbsp;&nbsp;bodyFat</option>
<option value="//api/name/leanMass">&nbsp;&nbsp;&nbsp;&nbsp;leanMass</option>
<option value="//api/name/weight">&nbsp;&nbsp;&nbsp;&nbsp;weight</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:</option>
<option value="//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bmi">bmi</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bodyFat">bodyFat</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/leanMass">leanMass</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/weight">weight</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:">eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:">eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBodyEvent Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBodyEvent Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPGenericEvent.html">UPGenericEvent</a> : <a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBodyEventAPI.h<br />UPBodyEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A body event describes body characteristics, like <a href="#//api/name/weight">weight</a> and body fat.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:">+&nbsp;eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:">+&nbsp;eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/weight">&nbsp;&nbsp;weight</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/bodyFat">&nbsp;&nbsp;bodyFat</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/leanMass">&nbsp;&nbsp;leanMass</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/bmi">&nbsp;&nbsp;bmi</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/bmi" title="bmi"></a>
<h3 class="subsubtitle method-title">bmi</h3>
<div class="method-subsection brief-description">
<p>Body Mass Index.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *bmi</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Body Mass Index.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/bodyFat" title="bodyFat"></a>
<h3 class="subsubtitle method-title">bodyFat</h3>
<div class="method-subsection brief-description">
<p>Body fat percentage.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *bodyFat</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Body fat percentage.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/leanMass" title="leanMass"></a>
<h3 class="subsubtitle method-title">leanMass</h3>
<div class="method-subsection brief-description">
<p>Lean mass percentage.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *leanMass</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Lean mass percentage.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/weight" title="weight"></a>
<h3 class="subsubtitle method-title">weight</h3>
<div class="method-subsection brief-description">
<p>Weight in kilograms.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *weight</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Weight in kilograms.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:" title="eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:</h3>
<div class="method-subsection brief-description">
<p>Create a new body event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPBodyEvent *)eventWithTitle:(NSString *)<em>title</em> weight:(NSNumber *)<em>weight</em> bodyFat:(NSNumber *)<em>bodyFat</em> leanMass:(NSNumber *)<em>leanMass</em> bmi:(NSNumber *)<em>bmi</em> note:(NSString *)<em>note</em> image:(UPImage *)<em>image</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title of the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>weight</em></dt>
<dd><p>Weight in kilograms.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>bodyFat</em></dt>
<dd><p>Body fat percentage.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>leanMass</em></dt>
<dd><p>Lean mass percentage.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>bmi</em></dt>
<dd><p>Body Mass Index.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>note</em></dt>
<dd><p>Notes associated with the event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>image</em></dt>
<dd><p>Image to include in the event.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new body event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:" title="eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:</h3>
<div class="method-subsection brief-description">
<p>Create a new body event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPBodyEvent *)eventWithTitle:(NSString *)<em>title</em> weight:(NSNumber *)<em>weight</em> bodyFat:(NSNumber *)<em>bodyFat</em> leanMass:(NSNumber *)<em>leanMass</em> bmi:(NSNumber *)<em>bmi</em> note:(NSString *)<em>note</em> imageURL:(NSString *)<em>imageURL</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title of the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>weight</em></dt>
<dd><p>Weight in kilograms.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>bodyFat</em></dt>
<dd><p>Body fat percentage.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>leanMass</em></dt>
<dd><p>Lean mass percentage.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>bmi</em></dt>
<dd><p>Body Mass Index.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>note</em></dt>
<dd><p>Notes associated with the event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>image</em></dt>
<dd><p>URL of the image to include in the event.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new body event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-518
View File
@@ -1,518 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBodyEventAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBodyEventAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteBodyEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteBodyEvent:completion:</option>
<option value="//api/name/getBodyEventsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getBodyEventsWithCompletion:</option>
<option value="//api/name/postBodyEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postBodyEvent:completion:</option>
<option value="//api/name/refreshBodyEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshBodyEvent:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteBodyEvent:completion:">deleteBodyEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getBodyEventsWithCompletion:">getBodyEventsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postBodyEvent:completion:">postBodyEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshBodyEvent:completion:">refreshBodyEvent:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBodyEventAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBodyEventAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBodyEventAPI.h<br />UPBodyEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with body events.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getBodyEventsWithCompletion:">+&nbsp;getBodyEventsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postBodyEvent:completion:">+&nbsp;postBodyEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshBodyEvent:completion:">+&nbsp;refreshBodyEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteBodyEvent:completion:">+&nbsp;deleteBodyEvent:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteBodyEvent:completion:" title="deleteBodyEvent:completion:"></a>
<h3 class="subsubtitle method-title">deleteBodyEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a single Weight metric event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteBodyEvent:(UPBodyEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>Existing body event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a single Weight metric event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getBodyEventsWithCompletion:" title="getBodyEventsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getBodyEventsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Get body composition metrics record events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getBodyEventsWithCompletion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Get body composition metrics record events for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postBodyEvent:completion:" title="postBodyEvent:completion:"></a>
<h3 class="subsubtitle method-title">postBodyEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Create a new user event to record body composition metrics for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postBodyEvent:(UPBodyEvent *)<em>event</em> completion:(UPBodyEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>New body event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new user event to record body composition metrics for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshBodyEvent:completion:" title="refreshBodyEvent:completion:"></a>
<h3 class="subsubtitle method-title">refreshBodyEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Get a single body composition metric event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshBodyEvent:(UPBodyEvent *)<em>event</em> completion:(UPBodyEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>Existing body event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Get a single body composition metric event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBodyEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-743
View File
@@ -1,743 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPCardiacEvent Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPCardiacEvent Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/diastolicPressure">&nbsp;&nbsp;&nbsp;&nbsp;diastolicPressure</option>
<option value="//api/name/heartRate">&nbsp;&nbsp;&nbsp;&nbsp;heartRate</option>
<option value="//api/name/systolicPressure">&nbsp;&nbsp;&nbsp;&nbsp;systolicPressure</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:</option>
<option value="//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/diastolicPressure">diastolicPressure</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/heartRate">heartRate</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/systolicPressure">systolicPressure</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:">eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:">eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPCardiacEvent Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPCardiacEvent Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPGenericEvent.html">UPGenericEvent</a> : <a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPCardiacEventAPI.h<br />UPCardiacEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A cardiac represents cardiac characteristics of the user, like heart rate.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:">+&nbsp;eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:">+&nbsp;eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/heartRate">&nbsp;&nbsp;heartRate</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/systolicPressure">&nbsp;&nbsp;systolicPressure</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/diastolicPressure">&nbsp;&nbsp;diastolicPressure</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/diastolicPressure" title="diastolicPressure"></a>
<h3 class="subsubtitle method-title">diastolicPressure</h3>
<div class="method-subsection brief-description">
<p>Diastolic pressure for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *diastolicPressure</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Diastolic pressure for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/heartRate" title="heartRate"></a>
<h3 class="subsubtitle method-title">heartRate</h3>
<div class="method-subsection brief-description">
<p>Heart rate for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *heartRate</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Heart rate for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/systolicPressure" title="systolicPressure"></a>
<h3 class="subsubtitle method-title">systolicPressure</h3>
<div class="method-subsection brief-description">
<p>Systolic pressure for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *systolicPressure</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Systolic pressure for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:" title="eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:image:</h3>
<div class="method-subsection brief-description">
<p>Create a new cardiac event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPCardiacEvent *)eventWithTitle:(NSString *)<em>title</em> heartRate:(NSNumber *)<em>heartRate</em> systolicPressure:(NSNumber *)<em>systolicPressure</em> diastolicPressure:(NSNumber *)<em>diastolicPressure</em> note:(NSString *)<em>note</em> image:(UPImage *)<em>image</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title for the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>heartRate</em></dt>
<dd><p>Heart rate.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>systolicPressure</em></dt>
<dd><p>Systolic pressure.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>diastolicPressure</em></dt>
<dd><p>Diastolic pressure.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>image</em></dt>
<dd><p>Associated image.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new cardiac event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:" title="eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:heartRate:systolicPressure:diastolicPressure:note:imageURL:</h3>
<div class="method-subsection brief-description">
<p>Create a new cardiac event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPCardiacEvent *)eventWithTitle:(NSString *)<em>title</em> heartRate:(NSNumber *)<em>heartRate</em> systolicPressure:(NSNumber *)<em>systolicPressure</em> diastolicPressure:(NSNumber *)<em>diastolicPressure</em> note:(NSString *)<em>note</em> imageURL:(NSString *)<em>imageURL</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title for the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>heartRate</em></dt>
<dd><p>Heart rate.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>systolicPressure</em></dt>
<dd><p>Systolic pressure.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>diastolicPressure</em></dt>
<dd><p>Diastolic pressure.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>imageURL</em></dt>
<dd><p>The URL for the associated image.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new cardiac event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-518
View File
@@ -1,518 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPCardiacEventAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPCardiacEventAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteCardiacEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteCardiacEvent:completion:</option>
<option value="//api/name/getCardiacEventsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getCardiacEventsWithCompletion:</option>
<option value="//api/name/postCardiacEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postCardiacEvent:completion:</option>
<option value="//api/name/refreshCardiacEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshCardiacEvent:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteCardiacEvent:completion:">deleteCardiacEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getCardiacEventsWithCompletion:">getCardiacEventsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postCardiacEvent:completion:">postCardiacEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshCardiacEvent:completion:">refreshCardiacEvent:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPCardiacEventAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPCardiacEventAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPCardiacEventAPI.h<br />UPCardiacEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with cardiac events.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getCardiacEventsWithCompletion:">+&nbsp;getCardiacEventsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postCardiacEvent:completion:">+&nbsp;postCardiacEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshCardiacEvent:completion:">+&nbsp;refreshCardiacEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteCardiacEvent:completion:">+&nbsp;deleteCardiacEvent:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteCardiacEvent:completion:" title="deleteCardiacEvent:completion:"></a>
<h3 class="subsubtitle method-title">deleteCardiacEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteCardiacEvent:(UPCardiacEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>An existing cardiac event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getCardiacEventsWithCompletion:" title="getCardiacEventsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getCardiacEventsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Request recent cardiac events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getCardiacEventsWithCompletion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request recent cardiac events for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postCardiacEvent:completion:" title="postCardiacEvent:completion:"></a>
<h3 class="subsubtitle method-title">postCardiacEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Post a cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postCardiacEvent:(UPCardiacEvent *)<em>event</em> completion:(UPCardiacEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>A new cardiac event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Post a cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshCardiacEvent:completion:" title="refreshCardiacEvent:completion:"></a>
<h3 class="subsubtitle method-title">refreshCardiacEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Refresh (update) an existing cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshCardiacEvent:(UPCardiacEvent *)<em>event</em> completion:(UPCardiacEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>event</em></dt>
<dd><p>An existing cardiac event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Refresh (update) an existing cardiac event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPCardiacEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-846
View File
@@ -1,846 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPGenericEvent Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPGenericEvent Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/attributes">&nbsp;&nbsp;&nbsp;&nbsp;attributes</option>
<option value="//api/name/image">&nbsp;&nbsp;&nbsp;&nbsp;image</option>
<option value="//api/name/imageURL">&nbsp;&nbsp;&nbsp;&nbsp;imageURL</option>
<option value="//api/name/note">&nbsp;&nbsp;&nbsp;&nbsp;note</option>
<option value="//api/name/verb">&nbsp;&nbsp;&nbsp;&nbsp;verb</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/eventWithTitle:verb:attributes:note:image:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:verb:attributes:note:image:</option>
<option value="//api/name/eventWithTitle:verb:attributes:note:imageURL:">&nbsp;&nbsp;&nbsp;&nbsp;+ eventWithTitle:verb:attributes:note:imageURL:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/attributes">attributes</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/image">image</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/imageURL">imageURL</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/note">note</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/verb">verb</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:verb:attributes:note:image:">eventWithTitle:verb:attributes:note:image:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eventWithTitle:verb:attributes:note:imageURL:">eventWithTitle:verb:attributes:note:imageURL:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPGenericEvent Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPGenericEvent Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPGenericEventAPI.h<br />UPGenericEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A generic event represents any event posted to the UP platform that isn&rsquo;t already represented.
This can be used for generic messaging, or events that are specific to 3rd party application (i.e. posting a photo)</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:verb:attributes:note:image:">+&nbsp;eventWithTitle:verb:attributes:note:image:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eventWithTitle:verb:attributes:note:imageURL:">+&nbsp;eventWithTitle:verb:attributes:note:imageURL:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/verb">&nbsp;&nbsp;verb</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/attributes">&nbsp;&nbsp;attributes</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/note">&nbsp;&nbsp;note</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/imageURL">&nbsp;&nbsp;imageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/image">&nbsp;&nbsp;image</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/attributes" title="attributes"></a>
<h3 class="subsubtitle method-title">attributes</h3>
<div class="method-subsection brief-description">
<p>Set of attributes associated with the event (used in the feed story).</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDictionary *attributes</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Set of attributes associated with the event (used in the feed story).</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/image" title="image"></a>
<h3 class="subsubtitle method-title">image</h3>
<div class="method-subsection brief-description">
<p>Event image.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) UPImage *image</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Event image.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/imageURL" title="imageURL"></a>
<h3 class="subsubtitle method-title">imageURL</h3>
<div class="method-subsection brief-description">
<p>URI of the event&rsquo;s <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *imageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>URI of the event&rsquo;s <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/note" title="note"></a>
<h3 class="subsubtitle method-title">note</h3>
<div class="method-subsection brief-description">
<p>Description of the event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *note</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Description of the event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/verb" title="verb"></a>
<h3 class="subsubtitle method-title">verb</h3>
<div class="method-subsection brief-description">
<p>Verb to indicate user action (used in the feed story).</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *verb</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Verb to indicate user action (used in the feed story).</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/eventWithTitle:verb:attributes:note:image:" title="eventWithTitle:verb:attributes:note:image:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:verb:attributes:note:image:</h3>
<div class="method-subsection brief-description">
<p>Create a new generic event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPGenericEvent *)eventWithTitle:(NSString *)<em>title</em> verb:(NSString *)<em>verb</em> attributes:(NSDictionary *)<em>attributes</em> note:(NSString *)<em>note</em> image:(UPImage *)<em>image</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title of the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>verb</em></dt>
<dd><p>Verb to indicate user action (used in the feed story).</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attributes</em></dt>
<dd><p>Set of <a href="#//api/name/attributes">attributes</a> associated with the event (used in the feed story).</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>note</em></dt>
<dd><p>Description of the event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>image</em></dt>
<dd><p>Image to include in the event.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new generic event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eventWithTitle:verb:attributes:note:imageURL:" title="eventWithTitle:verb:attributes:note:imageURL:"></a>
<h3 class="subsubtitle method-title">eventWithTitle:verb:attributes:note:imageURL:</h3>
<div class="method-subsection brief-description">
<p>Create a new generic event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPGenericEvent *)eventWithTitle:(NSString *)<em>title</em> verb:(NSString *)<em>verb</em> attributes:(NSDictionary *)<em>attributes</em> note:(NSString *)<em>note</em> imageURL:(NSString *)<em>imageURL</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>title</em></dt>
<dd><p>Title of the new event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>verb</em></dt>
<dd><p>Verb to indicate user action (used in the feed story).</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attributes</em></dt>
<dd><p>Set of <a href="#//api/name/attributes">attributes</a> associated with the event (used in the feed story).</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>note</em></dt>
<dd><p>Description of the event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>imageURL</em></dt>
<dd><p>URI of the <a href="#//api/name/image">image</a> to include in the event.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new generic event with supplied parameters for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-503
View File
@@ -1,503 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPGenericEventAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPGenericEventAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteGenericEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteGenericEvent:completion:</option>
<option value="//api/name/getGenericEventsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getGenericEventsWithCompletion:</option>
<option value="//api/name/postGenericEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postGenericEvent:completion:</option>
<option value="//api/name/refreshGenericEvent:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshGenericEvent:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteGenericEvent:completion:">deleteGenericEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getGenericEventsWithCompletion:">getGenericEventsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postGenericEvent:completion:">postGenericEvent:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshGenericEvent:completion:">refreshGenericEvent:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPGenericEventAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPGenericEventAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPGenericEventAPI.h<br />UPGenericEventAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with generic events.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getGenericEventsWithCompletion:">+&nbsp;getGenericEventsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postGenericEvent:completion:">+&nbsp;postGenericEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshGenericEvent:completion:">+&nbsp;refreshGenericEvent:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteGenericEvent:completion:">+&nbsp;deleteGenericEvent:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteGenericEvent:completion:" title="deleteGenericEvent:completion:"></a>
<h3 class="subsubtitle method-title">deleteGenericEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteGenericEvent:(UPGenericEvent *)<em>event</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getGenericEventsWithCompletion:" title="getGenericEventsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getGenericEventsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Get generic events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getGenericEventsWithCompletion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Get generic events for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postGenericEvent:completion:" title="postGenericEvent:completion:"></a>
<h3 class="subsubtitle method-title">postGenericEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Create a new generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postGenericEvent:(UPGenericEvent *)<em>event</em> completion:(UPGenericEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshGenericEvent:completion:" title="refreshGenericEvent:completion:"></a>
<h3 class="subsubtitle method-title">refreshGenericEvent:completion:</h3>
<div class="method-subsection brief-description">
<p>Get a generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshGenericEvent:(UPGenericEvent *)<em>event</em> completion:(UPGenericEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Get a generic event for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPGenericEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-1141
View File
File diff suppressed because it is too large Load Diff
-587
View File
@@ -1,587 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMealAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMealAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteMeal:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteMeal:completion:</option>
<option value="//api/name/getMealDetails:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMealDetails:completion:</option>
<option value="//api/name/getMealsFromStartDate:toEndDate:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMealsFromStartDate:toEndDate:completion:</option>
<option value="//api/name/getMealsWithLimit:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMealsWithLimit:completion:</option>
<option value="//api/name/postMeal:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postMeal:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteMeal:completion:">deleteMeal:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMealDetails:completion:">getMealDetails:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMealsFromStartDate:toEndDate:completion:">getMealsFromStartDate:toEndDate:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMealsWithLimit:completion:">getMealsWithLimit:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postMeal:completion:">postMeal:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMealAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMealAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMealAPI.h<br />UPMealAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the user&rsquo;s meals.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getMealsWithLimit:completion:">+&nbsp;getMealsWithLimit:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getMealsFromStartDate:toEndDate:completion:">+&nbsp;getMealsFromStartDate:toEndDate:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postMeal:completion:">+&nbsp;postMeal:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getMealDetails:completion:">+&nbsp;getMealDetails:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteMeal:completion:">+&nbsp;deleteMeal:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteMeal:completion:" title="deleteMeal:completion:"></a>
<h3 class="subsubtitle method-title">deleteMeal:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a meal event that&rsquo;s currently on the user&rsquo;s timeline.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteMeal:(UPMeal *)<em>meal</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>meal</em></dt>
<dd><p>New meal event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a result array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a meal event that&rsquo;s currently on the user&rsquo;s timeline.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMealDetails:completion:" title="getMealDetails:completion:"></a>
<h3 class="subsubtitle method-title">getMealDetails:completion:</h3>
<div class="method-subsection brief-description">
<p>Request details about a meal event on the currently authenticated user&rsquo;s feed.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMealDetails:(UPMeal *)<em>meal</em> completion:(UPMealAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>meal</em></dt>
<dd><p>New meal event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a result array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request details about a meal event on the currently authenticated user&rsquo;s feed.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMealsFromStartDate:toEndDate:completion:" title="getMealsFromStartDate:toEndDate:completion:"></a>
<h3 class="subsubtitle method-title">getMealsFromStartDate:toEndDate:completion:</h3>
<div class="method-subsection brief-description">
<p>Request meal events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMealsFromStartDate:(NSDate *)<em>startDate</em> toEndDate:(NSDate *)<em>endDate</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a result array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request meal events between two points in time for the currently authenticated user.</p>
<p>@param startDate
@param endDate</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMealsWithLimit:completion:" title="getMealsWithLimit:completion:"></a>
<h3 class="subsubtitle method-title">getMealsWithLimit:completion:</h3>
<div class="method-subsection brief-description">
<p>Request most recent meal events for the currently authenticated user. The request is made asynchronously.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMealsWithLimit:(NSUInteger)<em>limit</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>limit</em></dt>
<dd><p>Maximum number of meals to be retrieved.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a result array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request most recent meal events for the currently authenticated user. The request is made asynchronously.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postMeal:completion:" title="postMeal:completion:"></a>
<h3 class="subsubtitle method-title">postMeal:completion:</h3>
<div class="method-subsection brief-description">
<p>Post a meal event to the feed of the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postMeal:(UPMeal *)<em>meal</em> completion:(UPMealAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>meal</em></dt>
<dd><p>New meal event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a result array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Post a meal event to the feed of the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-897
View File
@@ -1,897 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMealItem Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMealItem Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/amount">&nbsp;&nbsp;&nbsp;&nbsp;amount</option>
<option value="//api/name/category">&nbsp;&nbsp;&nbsp;&nbsp;category</option>
<option value="//api/name/foodType">&nbsp;&nbsp;&nbsp;&nbsp;foodType</option>
<option value="//api/name/itemDescription">&nbsp;&nbsp;&nbsp;&nbsp;itemDescription</option>
<option value="//api/name/measurementUnits">&nbsp;&nbsp;&nbsp;&nbsp;measurementUnits</option>
<option value="//api/name/name">&nbsp;&nbsp;&nbsp;&nbsp;name</option>
<option value="//api/name/nutritionInfo">&nbsp;&nbsp;&nbsp;&nbsp;nutritionInfo</option>
<option value="//api/name/servingType">&nbsp;&nbsp;&nbsp;&nbsp;servingType</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:">&nbsp;&nbsp;&nbsp;&nbsp;+ mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/amount">amount</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/category">category</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/foodType">foodType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/itemDescription">itemDescription</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/measurementUnits">measurementUnits</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/name">name</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/nutritionInfo">nutritionInfo</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/servingType">servingType</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:">mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMealItem Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMealItem Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMealAPI.h<br />UPMealAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A single item making up a portion of a meal.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:">+&nbsp;mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/name">&nbsp;&nbsp;name</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/itemDescription">&nbsp;&nbsp;itemDescription</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/amount">&nbsp;&nbsp;amount</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/measurementUnits">&nbsp;&nbsp;measurementUnits</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/servingType">&nbsp;&nbsp;servingType</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/foodType">&nbsp;&nbsp;foodType</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/category">&nbsp;&nbsp;category</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/nutritionInfo">&nbsp;&nbsp;nutritionInfo</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/amount" title="amount"></a>
<h3 class="subsubtitle method-title">amount</h3>
<div class="method-subsection brief-description">
<p>The amount of this meal item in the overall meal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *amount</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The amount of this meal item in the overall meal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/category" title="category"></a>
<h3 class="subsubtitle method-title">category</h3>
<div class="method-subsection brief-description">
<p>The category of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *category</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The category of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/foodType" title="foodType"></a>
<h3 class="subsubtitle method-title">foodType</h3>
<div class="method-subsection brief-description">
<p>The food type of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPMealItemFoodType foodType</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The food type of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/itemDescription" title="itemDescription"></a>
<h3 class="subsubtitle method-title">itemDescription</h3>
<div class="method-subsection brief-description">
<p>The <a href="#//api/name/description">description</a> of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *itemDescription</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The <a href="#//api/name/description">description</a> of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/measurementUnits" title="measurementUnits"></a>
<h3 class="subsubtitle method-title">measurementUnits</h3>
<div class="method-subsection brief-description">
<p>The unit of measurement that the <a href="#//api/name/amount">amount</a> represents.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *measurementUnits</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The unit of measurement that the <a href="#//api/name/amount">amount</a> represents.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/name" title="name"></a>
<h3 class="subsubtitle method-title">name</h3>
<div class="method-subsection brief-description">
<p>The name of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *name</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The name of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/nutritionInfo" title="nutritionInfo"></a>
<h3 class="subsubtitle method-title">nutritionInfo</h3>
<div class="method-subsection brief-description">
<p>The nutrition information of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) UPMealNutritionInfo *nutritionInfo</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The nutrition information of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/servingType" title="servingType"></a>
<h3 class="subsubtitle method-title">servingType</h3>
<div class="method-subsection brief-description">
<p>The serving type of the meal item.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPMealItemServingType servingType</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The serving type of the meal item.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:" title="mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:"></a>
<h3 class="subsubtitle method-title">mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:</h3>
<div class="method-subsection brief-description">
<p>Create a new meal item that can be used inside a meal event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPMealItem *)mealItemWithName:(NSString *)<em>name</em> description:(NSString *)<em>description</em> amount:(NSNumber *)<em>amount</em> measurementUnits:(NSString *)<em>measurementUnits</em> servingType:(UPMealItemServingType)<em>servingType</em> foodType:(UPMealItemFoodType)<em>foodType</em> nutritionInfo:(UPMealNutritionInfo *)<em>nutritionInfo</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>name</em></dt>
<dd><p>The <a href="#//api/name/name">name</a> of the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>description</em></dt>
<dd><p>The <a href="#//api/name/description">description</a> of the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>amount</em></dt>
<dd><p>The <a href="#//api/name/amount">amount</a> or quantity of the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>measurementUnits</em></dt>
<dd><p>The unit of measurement for the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>servingType</em></dt>
<dd><p>The serving type of the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>foodType</em></dt>
<dd><p>The food type of the new meal item.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>nutritionInfo</em></dt>
<dd><p>The nutrition information for the new item.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new meal item that can be used inside a meal event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff
-545
View File
@@ -1,545 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMood Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMood Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/type">&nbsp;&nbsp;&nbsp;&nbsp;type</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/moodWithType:title:">&nbsp;&nbsp;&nbsp;&nbsp;+ moodWithType:title:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/type">type</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/moodWithType:title:">moodWithType:title:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMood Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMood Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoodAPI.h<br />UPMoodAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>An event that represents how the user is feeling.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/moodWithType:title:">+&nbsp;moodWithType:title:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/type">&nbsp;&nbsp;type</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/type" title="type"></a>
<h3 class="subsubtitle method-title">type</h3>
<div class="method-subsection brief-description">
<p>The type of mood, which controls which icon is used.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPMoodType type</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The type of mood, which controls which icon is used.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/moodWithType:title:" title="moodWithType:title:"></a>
<h3 class="subsubtitle method-title">moodWithType:title:</h3>
<div class="method-subsection brief-description">
<p>Create a new mood event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPMood *)moodWithType:(UPMoodType)<em>type</em> title:(NSString *)<em>title</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>type</em></dt>
<dd><p>The mood <a href="#//api/name/type">type</a> of new mood event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new mood event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-518
View File
@@ -1,518 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMoodAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMoodAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteMood:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteMood:completion:</option>
<option value="//api/name/getCurrentMoodWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getCurrentMoodWithCompletion:</option>
<option value="//api/name/postMood:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postMood:completion:</option>
<option value="//api/name/refreshMood:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshMood:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteMood:completion:">deleteMood:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getCurrentMoodWithCompletion:">getCurrentMoodWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postMood:completion:">postMood:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshMood:completion:">refreshMood:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMoodAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMoodAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoodAPI.h<br />UPMoodAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the user&rsquo;s moods.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getCurrentMoodWithCompletion:">+&nbsp;getCurrentMoodWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postMood:completion:">+&nbsp;postMood:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteMood:completion:">+&nbsp;deleteMood:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshMood:completion:">+&nbsp;refreshMood:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteMood:completion:" title="deleteMood:completion:"></a>
<h3 class="subsubtitle method-title">deleteMood:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a mood event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteMood:(UPMood *)<em>mood</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>mood</em></dt>
<dd><p>The mood event to be deleted. The currently authenticated user must own the mood event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a mood event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getCurrentMoodWithCompletion:" title="getCurrentMoodWithCompletion:"></a>
<h3 class="subsubtitle method-title">getCurrentMoodWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Request the current mood of the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getCurrentMoodWithCompletion:(UPMoodAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request the current mood of the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postMood:completion:" title="postMood:completion:"></a>
<h3 class="subsubtitle method-title">postMood:completion:</h3>
<div class="method-subsection brief-description">
<p>Post a mood update to the currently authenticated user&rsquo;s feed.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postMood:(UPMood *)<em>mood</em> completion:(UPMoodAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>mood</em></dt>
<dd><p>The new mood event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Post a mood update to the currently authenticated user&rsquo;s feed.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshMood:completion:" title="refreshMood:completion:"></a>
<h3 class="subsubtitle method-title">refreshMood:completion:</h3>
<div class="method-subsection brief-description">
<p>Update an existing mood event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshMood:(UPMood *)<em>mood</em> completion:(UPMoodAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>mood</em></dt>
<dd><p>The mood event to be updated.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the result or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Update an existing mood event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-874
View File
@@ -1,874 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMove Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMove Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/activeCalories">&nbsp;&nbsp;&nbsp;&nbsp;activeCalories</option>
<option value="//api/name/activeTime">&nbsp;&nbsp;&nbsp;&nbsp;activeTime</option>
<option value="//api/name/distance">&nbsp;&nbsp;&nbsp;&nbsp;distance</option>
<option value="//api/name/graphImageURL">&nbsp;&nbsp;&nbsp;&nbsp;graphImageURL</option>
<option value="//api/name/inactiveTime">&nbsp;&nbsp;&nbsp;&nbsp;inactiveTime</option>
<option value="//api/name/longestActive">&nbsp;&nbsp;&nbsp;&nbsp;longestActive</option>
<option value="//api/name/longestIdle">&nbsp;&nbsp;&nbsp;&nbsp;longestIdle</option>
<option value="//api/name/restingCalories">&nbsp;&nbsp;&nbsp;&nbsp;restingCalories</option>
<option value="//api/name/steps">&nbsp;&nbsp;&nbsp;&nbsp;steps</option>
<option value="//api/name/totalCalories">&nbsp;&nbsp;&nbsp;&nbsp;totalCalories</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/activeCalories">activeCalories</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/activeTime">activeTime</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/distance">distance</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/graphImageURL">graphImageURL</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/inactiveTime">inactiveTime</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longestActive">longestActive</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/longestIdle">longestIdle</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/restingCalories">restingCalories</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/steps">steps</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/totalCalories">totalCalories</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMove Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMove Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoveAPI.h<br />UPMoveAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A move represents the user&rsquo;s activity throughout a day.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/activeTime">&nbsp;&nbsp;activeTime</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/inactiveTime">&nbsp;&nbsp;inactiveTime</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/restingCalories">&nbsp;&nbsp;restingCalories</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/activeCalories">&nbsp;&nbsp;activeCalories</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/totalCalories">&nbsp;&nbsp;totalCalories</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/distance">&nbsp;&nbsp;distance</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/steps">&nbsp;&nbsp;steps</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/longestIdle">&nbsp;&nbsp;longestIdle</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/longestActive">&nbsp;&nbsp;longestActive</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/graphImageURL">&nbsp;&nbsp;graphImageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/activeCalories" title="activeCalories"></a>
<h3 class="subsubtitle method-title">activeCalories</h3>
<div class="method-subsection brief-description">
<p>The number of active calories burned.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *activeCalories</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The number of active calories burned.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/activeTime" title="activeTime"></a>
<h3 class="subsubtitle method-title">activeTime</h3>
<div class="method-subsection brief-description">
<p>The duration of time for which the user was active.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *activeTime</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The duration of time for which the user was active.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/distance" title="distance"></a>
<h3 class="subsubtitle method-title">distance</h3>
<div class="method-subsection brief-description">
<p>The distance traveled during the move event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *distance</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The distance traveled during the move event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/graphImageURL" title="graphImageURL"></a>
<h3 class="subsubtitle method-title">graphImageURL</h3>
<div class="method-subsection brief-description">
<p>The URL for the graph image for the move event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *graphImageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The URL for the graph image for the move event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/inactiveTime" title="inactiveTime"></a>
<h3 class="subsubtitle method-title">inactiveTime</h3>
<div class="method-subsection brief-description">
<p>The duration of time for which the user was inactive.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *inactiveTime</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The duration of time for which the user was inactive.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/longestActive" title="longestActive"></a>
<h3 class="subsubtitle method-title">longestActive</h3>
<div class="method-subsection brief-description">
<p>The longest period of time that the user spent active during the move event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *longestActive</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The longest period of time that the user spent active during the move event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/longestIdle" title="longestIdle"></a>
<h3 class="subsubtitle method-title">longestIdle</h3>
<div class="method-subsection brief-description">
<p>The longest time that the user spent idle during the move event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *longestIdle</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The longest time that the user spent idle during the move event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/restingCalories" title="restingCalories"></a>
<h3 class="subsubtitle method-title">restingCalories</h3>
<div class="method-subsection brief-description">
<p>The number of resting calories burned.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *restingCalories</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The number of resting calories burned.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/steps" title="steps"></a>
<h3 class="subsubtitle method-title">steps</h3>
<div class="method-subsection brief-description">
<p>The number of steps taken during the event.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *steps</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The number of steps taken during the event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/totalCalories" title="totalCalories"></a>
<h3 class="subsubtitle method-title">totalCalories</h3>
<div class="method-subsection brief-description">
<p>The number of total calories burned.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *totalCalories</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The number of total calories burned.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-594
View File
@@ -1,594 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMoveAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMoveAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/getMoveGraphImage:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMoveGraphImage:completion:</option>
<option value="//api/name/getMoveTicks:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMoveTicks:completion:</option>
<option value="//api/name/getMovesFromStartDate:toEndDate:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMovesFromStartDate:toEndDate:completion:</option>
<option value="//api/name/getMovesWithLimit:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getMovesWithLimit:completion:</option>
<option value="//api/name/refreshMove:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshMove:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMoveGraphImage:completion:">getMoveGraphImage:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMoveTicks:completion:">getMoveTicks:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMovesFromStartDate:toEndDate:completion:">getMovesFromStartDate:toEndDate:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getMovesWithLimit:completion:">getMovesWithLimit:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshMove:completion:">refreshMove:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMoveAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMoveAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoveAPI.h<br />UPMoveAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the user&rsquo;s move events.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getMovesWithLimit:completion:">+&nbsp;getMovesWithLimit:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getMovesFromStartDate:toEndDate:completion:">+&nbsp;getMovesFromStartDate:toEndDate:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshMove:completion:">+&nbsp;refreshMove:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getMoveGraphImage:completion:">+&nbsp;getMoveGraphImage:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getMoveTicks:completion:">+&nbsp;getMoveTicks:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/getMoveGraphImage:completion:" title="getMoveGraphImage:completion:"></a>
<h3 class="subsubtitle method-title">getMoveGraphImage:completion:</h3>
<div class="method-subsection brief-description">
<p>Request a graph image for a sleep event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMoveGraphImage:(UPMove *)<em>move</em> completion:(UPBaseEventAPIImageCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>move</em></dt>
<dd><p>The move event to request the graph image for. The event must be visible to the user.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the graph image.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request a graph image for a sleep event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMoveTicks:completion:" title="getMoveTicks:completion:"></a>
<h3 class="subsubtitle method-title">getMoveTicks:completion:</h3>
<div class="method-subsection brief-description">
<p>Requests individual ticks in the move. Ticks have finer grain detail about the move.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMoveTicks:(UPMove *)<em>move</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>move</em></dt>
<dd><p>The move event to request the ticks for.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the ticks array or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Requests individual ticks in the move. Ticks have finer grain detail about the move.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMovesFromStartDate:toEndDate:completion:" title="getMovesFromStartDate:toEndDate:completion:"></a>
<h3 class="subsubtitle method-title">getMovesFromStartDate:toEndDate:completion:</h3>
<div class="method-subsection brief-description">
<p>Request move events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMovesFromStartDate:(NSDate *)<em>startDate</em> toEndDate:(NSDate *)<em>endDate</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>startDate</em></dt>
<dd><p>The earliest date to fetch move events from.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>endDate</em></dt>
<dd><p>The date up to which to fetch move events to.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request move events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getMovesWithLimit:completion:" title="getMovesWithLimit:completion:"></a>
<h3 class="subsubtitle method-title">getMovesWithLimit:completion:</h3>
<div class="method-subsection brief-description">
<p>Request recent move events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getMovesWithLimit:(NSUInteger)<em>limit</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>limit</em></dt>
<dd><p>The maximum number of events to return.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. This block is passed the results or any error information.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request recent move events for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshMove:completion:" title="refreshMove:completion:"></a>
<h3 class="subsubtitle method-title">refreshMove:completion:</h3>
<div class="method-subsection brief-description">
<p>Request a single move event from the user&rsquo;s history.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshMove:(UPMove *)<em>move</em> completion:(UPMoveAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>move</em></dt>
<dd><p>The move event to request. The event must be visible to the user.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request a single move event from the user&rsquo;s history.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-691
View File
@@ -1,691 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMoveTick Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMoveTick Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/activeTime">&nbsp;&nbsp;&nbsp;&nbsp;activeTime</option>
<option value="//api/name/calories">&nbsp;&nbsp;&nbsp;&nbsp;calories</option>
<option value="//api/name/distance">&nbsp;&nbsp;&nbsp;&nbsp;distance</option>
<option value="//api/name/speed">&nbsp;&nbsp;&nbsp;&nbsp;speed</option>
<option value="//api/name/steps">&nbsp;&nbsp;&nbsp;&nbsp;steps</option>
<option value="//api/name/timestamp">&nbsp;&nbsp;&nbsp;&nbsp;timestamp</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/activeTime">activeTime</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/calories">calories</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/distance">distance</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/speed">speed</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/steps">steps</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timestamp">timestamp</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMoveTick Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMoveTick Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoveAPI.h<br />UPMoveAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A move tick represents details about the move at a small section in time.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/activeTime">&nbsp;&nbsp;activeTime</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/calories">&nbsp;&nbsp;calories</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/distance">&nbsp;&nbsp;distance</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/speed">&nbsp;&nbsp;speed</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/steps">&nbsp;&nbsp;steps</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timestamp">&nbsp;&nbsp;timestamp</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/activeTime" title="activeTime"></a>
<h3 class="subsubtitle method-title">activeTime</h3>
<div class="method-subsection brief-description">
<p>The minutes of active time in the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *activeTime</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The minutes of active time in the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/calories" title="calories"></a>
<h3 class="subsubtitle method-title">calories</h3>
<div class="method-subsection brief-description">
<p>The calories burned during the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *calories</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The calories burned during the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/distance" title="distance"></a>
<h3 class="subsubtitle method-title">distance</h3>
<div class="method-subsection brief-description">
<p>The distance traveled during the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *distance</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The distance traveled during the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/speed" title="speed"></a>
<h3 class="subsubtitle method-title">speed</h3>
<div class="method-subsection brief-description">
<p>The average speed during the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *speed</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The average speed during the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/steps" title="steps"></a>
<h3 class="subsubtitle method-title">steps</h3>
<div class="method-subsection brief-description">
<p>The total number of steps taken during the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *steps</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The total number of steps taken during the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timestamp" title="timestamp"></a>
<h3 class="subsubtitle method-title">timestamp</h3>
<div class="method-subsection brief-description">
<p>The timestamp of the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *timestamp</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The timestamp of the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoveAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
File diff suppressed because it is too large Load Diff
-435
View File
@@ -1,435 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPSession Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPSession Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/authenticationToken">&nbsp;&nbsp;&nbsp;&nbsp;authenticationToken</option>
<option value="//api/name/currentUser">&nbsp;&nbsp;&nbsp;&nbsp;currentUser</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/initWithToken:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithToken:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/authenticationToken">authenticationToken</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/currentUser">currentUser</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithToken:">initWithToken:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPSession Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPSession Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPSession.h<br />UPSession.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Represents an authenticated user&rsquo;s active session.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/initWithToken:">&ndash;&nbsp;initWithToken:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/authenticationToken">&nbsp;&nbsp;authenticationToken</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/currentUser">&nbsp;&nbsp;currentUser</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/authenticationToken" title="authenticationToken"></a>
<h3 class="subsubtitle method-title">authenticationToken</h3>
<div class="method-subsection brief-description">
<p>The authentication token of the current session, used for all HTTP requests.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSString *authenticationToken</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The authentication token of the current session, used for all HTTP requests.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSession.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/currentUser" title="currentUser"></a>
<h3 class="subsubtitle method-title">currentUser</h3>
<div class="method-subsection brief-description">
<p>The currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) UPUser *currentUser</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSession.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/initWithToken:" title="initWithToken:"></a>
<h3 class="subsubtitle method-title">initWithToken:</h3>
<div class="method-subsection brief-description">
<p>Creates a new session with a given access token.</p>
</div>
<div class="method-subsection method-declaration"><code>- (id)initWithToken:(NSString *)<em>token</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>token</em></dt>
<dd><p>The access token received during OAuth.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a new session with a given access token.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSession.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-1060
View File
File diff suppressed because it is too large Load Diff
-713
View File
@@ -1,713 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPSleepAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPSleepAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteSleep:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteSleep:completion:</option>
<option value="//api/name/getSleepGraphImage:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getSleepGraphImage:completion:</option>
<option value="//api/name/getSleepTicks:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getSleepTicks:completion:</option>
<option value="//api/name/getSleepsFromStartDate:toEndDate:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getSleepsFromStartDate:toEndDate:completion:</option>
<option value="//api/name/getSleepsWithLimit:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getSleepsWithLimit:completion:</option>
<option value="//api/name/postSleep:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postSleep:completion:</option>
<option value="//api/name/refreshSleep:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshSleep:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteSleep:completion:">deleteSleep:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getSleepGraphImage:completion:">getSleepGraphImage:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getSleepTicks:completion:">getSleepTicks:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getSleepsFromStartDate:toEndDate:completion:">getSleepsFromStartDate:toEndDate:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getSleepsWithLimit:completion:">getSleepsWithLimit:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postSleep:completion:">postSleep:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshSleep:completion:">refreshSleep:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPSleepAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPSleepAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPSleepAPI.h<br />UPSleepAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the user&rsquo;s sleeps.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getSleepsWithLimit:completion:">+&nbsp;getSleepsWithLimit:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getSleepsFromStartDate:toEndDate:completion:">+&nbsp;getSleepsFromStartDate:toEndDate:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postSleep:completion:">+&nbsp;postSleep:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshSleep:completion:">+&nbsp;refreshSleep:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteSleep:completion:">+&nbsp;deleteSleep:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getSleepGraphImage:completion:">+&nbsp;getSleepGraphImage:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getSleepTicks:completion:">+&nbsp;getSleepTicks:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteSleep:completion:" title="deleteSleep:completion:"></a>
<h3 class="subsubtitle method-title">deleteSleep:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete a sleep event. The event must belong to the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteSleep:(UPSleep *)<em>sleep</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>sleep</em></dt>
<dd><p>The sleep event to be deleted.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed a completion object.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete a sleep event. The event must belong to the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getSleepGraphImage:completion:" title="getSleepGraphImage:completion:"></a>
<h3 class="subsubtitle method-title">getSleepGraphImage:completion:</h3>
<div class="method-subsection brief-description">
<p>Request an image containing a graph for the sleep event. The event must be visible to the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getSleepGraphImage:(UPSleep *)<em>sleep</em> completion:(UPBaseEventAPIImageCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>sleep</em></dt>
<dd><p>The sleep event to request.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the result.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request an image containing a graph for the sleep event. The event must be visible to the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getSleepTicks:completion:" title="getSleepTicks:completion:"></a>
<h3 class="subsubtitle method-title">getSleepTicks:completion:</h3>
<div class="method-subsection brief-description">
<p>Requests ticks of the sleep. The ticks provide finer detail about the sleep.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getSleepTicks:(UPSleep *)<em>sleep</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>sleep</em></dt>
<dd><p>The sleep event to request the snapshot for.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the result.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Requests ticks of the sleep. The ticks provide finer detail about the sleep.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getSleepsFromStartDate:toEndDate:completion:" title="getSleepsFromStartDate:toEndDate:completion:"></a>
<h3 class="subsubtitle method-title">getSleepsFromStartDate:toEndDate:completion:</h3>
<div class="method-subsection brief-description">
<p>Request sleep events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getSleepsFromStartDate:(NSDate *)<em>startDate</em> toEndDate:(NSDate *)<em>endDate</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request sleep events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getSleepsWithLimit:completion:" title="getSleepsWithLimit:completion:"></a>
<h3 class="subsubtitle method-title">getSleepsWithLimit:completion:</h3>
<div class="method-subsection brief-description">
<p>Request recent sleep sleep for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getSleepsWithLimit:(NSUInteger)<em>limit</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>limit</em></dt>
<dd><p>The maximum number of events that will be returned.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request recent sleep sleep for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postSleep:completion:" title="postSleep:completion:"></a>
<h3 class="subsubtitle method-title">postSleep:completion:</h3>
<div class="method-subsection brief-description">
<p>Post a new sleep event to the user&rsquo;s timeline.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postSleep:(UPSleep *)<em>sleep</em> completion:(UPSleepAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>sleep</em></dt>
<dd><p>A new sleep event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Post a new sleep event to the user&rsquo;s timeline.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshSleep:completion:" title="refreshSleep:completion:"></a>
<h3 class="subsubtitle method-title">refreshSleep:completion:</h3>
<div class="method-subsection brief-description">
<p>Request sleep recent sleep events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshSleep:(UPSleep *)<em>sleep</em> completion:(UPSleepAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request sleep recent sleep events for the currently authenticated user.</p>
<p>@param limit</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-487
View File
@@ -1,487 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPSleepTick Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPSleepTick Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/depth">&nbsp;&nbsp;&nbsp;&nbsp;depth</option>
<option value="//api/name/timestamp">&nbsp;&nbsp;&nbsp;&nbsp;timestamp</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/depth">depth</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timestamp">timestamp</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPSleepTick Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPSleepTick Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPSleepAPI.h<br />UPSleepAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A sleep tick represents details about the sleep at a small section in time.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/depth">&nbsp;&nbsp;depth</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timestamp">&nbsp;&nbsp;timestamp</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/depth" title="depth"></a>
<h3 class="subsubtitle method-title">depth</h3>
<div class="method-subsection brief-description">
<p>The sleep depth of the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *depth</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The sleep depth of the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timestamp" title="timestamp"></a>
<h3 class="subsubtitle method-title">timestamp</h3>
<div class="method-subsection brief-description">
<p>The timestamp of the tick.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *timestamp</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The timestamp of the tick.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPSleepAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-1559
View File
File diff suppressed because it is too large Load Diff
-528
View File
@@ -1,528 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPURLRequest Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPURLRequest Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteRequestWithEndpoint:params:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteRequestWithEndpoint:params:</option>
<option value="//api/name/getRequestWithEndpoint:params:">&nbsp;&nbsp;&nbsp;&nbsp;+ getRequestWithEndpoint:params:</option>
<option value="//api/name/postRequestWithEndpoint:params:">&nbsp;&nbsp;&nbsp;&nbsp;+ postRequestWithEndpoint:params:</option>
<option value="//api/name/postRequestWithEndpoint:params:image:">&nbsp;&nbsp;&nbsp;&nbsp;+ postRequestWithEndpoint:params:image:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteRequestWithEndpoint:params:">deleteRequestWithEndpoint:params:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getRequestWithEndpoint:params:">getRequestWithEndpoint:params:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postRequestWithEndpoint:params:">postRequestWithEndpoint:params:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postRequestWithEndpoint:params:image:">postRequestWithEndpoint:params:image:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPURLRequest Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPURLRequest Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSMutableURLRequest</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPURLRequest.h<br />UPURLRequest.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The base URLRequest object that contains the necessary headers for OAuth.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getRequestWithEndpoint:params:">+&nbsp;getRequestWithEndpoint:params:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postRequestWithEndpoint:params:">+&nbsp;postRequestWithEndpoint:params:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteRequestWithEndpoint:params:">+&nbsp;deleteRequestWithEndpoint:params:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postRequestWithEndpoint:params:image:">+&nbsp;postRequestWithEndpoint:params:image:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteRequestWithEndpoint:params:" title="deleteRequestWithEndpoint:params:"></a>
<h3 class="subsubtitle method-title">deleteRequestWithEndpoint:params:</h3>
<div class="method-subsection brief-description">
<p>Creates a new DELETE request.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPURLRequest *)deleteRequestWithEndpoint:(NSString *)<em>endpoint</em> params:(NSDictionary *)<em>params</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>endpoint</em></dt>
<dd><p>The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>params</em></dt>
<dd><p>A dictionary of paramters to send with the request.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a new DELETE request.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLRequest.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getRequestWithEndpoint:params:" title="getRequestWithEndpoint:params:"></a>
<h3 class="subsubtitle method-title">getRequestWithEndpoint:params:</h3>
<div class="method-subsection brief-description">
<p>Creates a new GET request.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPURLRequest *)getRequestWithEndpoint:(NSString *)<em>endpoint</em> params:(NSDictionary *)<em>params</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>endpoint</em></dt>
<dd><p>The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>params</em></dt>
<dd><p>A dictionary of paramters to send with the request.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a new GET request.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLRequest.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postRequestWithEndpoint:params:" title="postRequestWithEndpoint:params:"></a>
<h3 class="subsubtitle method-title">postRequestWithEndpoint:params:</h3>
<div class="method-subsection brief-description">
<p>Creates a new POST request.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)<em>endpoint</em> params:(NSDictionary *)<em>params</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>endpoint</em></dt>
<dd><p>The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>params</em></dt>
<dd><p>A dictionary of paramters to send with the request.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a new POST request.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLRequest.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postRequestWithEndpoint:params:image:" title="postRequestWithEndpoint:params:image:"></a>
<h3 class="subsubtitle method-title">postRequestWithEndpoint:params:image:</h3>
<div class="method-subsection brief-description">
<p>Creates a new POST request with an additional image object.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)<em>endpoint</em> params:(NSDictionary *)<em>params</em> image:(UPImage *)<em>image</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>endpoint</em></dt>
<dd><p>The endpoint to send the request, relative to the base platform URL (i.e. nudge/api/users/@me/meals)</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>params</em></dt>
<dd><p>A dictionary of paramters to send with the request.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>image</em></dt>
<dd><p>An image to post along with the params.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Creates a new POST request with an additional image object.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLRequest.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-463
View File
@@ -1,463 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPURLResponse Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPURLResponse Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/code">&nbsp;&nbsp;&nbsp;&nbsp;code</option>
<option value="//api/name/data">&nbsp;&nbsp;&nbsp;&nbsp;data</option>
<option value="//api/name/metadata">&nbsp;&nbsp;&nbsp;&nbsp;metadata</option>
<option value="//api/name/nextPageURL">&nbsp;&nbsp;&nbsp;&nbsp;nextPageURL</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/code">code</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/data">data</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/metadata">metadata</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/nextPageURL">nextPageURL</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPURLResponse Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPURLResponse Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPURLResponse.h<br />UPURLResponse.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The base response object for all HTTP requests.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/code">&nbsp;&nbsp;code</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/data">&nbsp;&nbsp;data</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/metadata">&nbsp;&nbsp;metadata</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/nextPageURL">&nbsp;&nbsp;nextPageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/code" title="code"></a>
<h3 class="subsubtitle method-title">code</h3>
<div class="method-subsection brief-description">
<p>The HTTP status code of the response.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSInteger code</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The HTTP status code of the response.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLResponse.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/data" title="data"></a>
<h3 class="subsubtitle method-title">data</h3>
<div class="method-subsection brief-description">
<p>A dictionary with the contents of the response.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSDictionary *data</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>A dictionary with the contents of the response.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLResponse.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/metadata" title="metadata"></a>
<h3 class="subsubtitle method-title">metadata</h3>
<div class="method-subsection brief-description">
<p>A dictinoary with the meta<a href="#//api/name/data">data</a> of the response.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSDictionary *metadata</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>A dictinoary with the meta<a href="#//api/name/data">data</a> of the response.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLResponse.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/nextPageURL" title="nextPageURL"></a>
<h3 class="subsubtitle method-title">nextPageURL</h3>
<div class="method-subsection brief-description">
<p>The next page URL used in paginated responses.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSString *nextPageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The next page URL used in paginated responses.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPURLResponse.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-742
View File
@@ -1,742 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUser Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUser Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/firstName">&nbsp;&nbsp;&nbsp;&nbsp;firstName</option>
<option value="//api/name/gender">&nbsp;&nbsp;&nbsp;&nbsp;gender</option>
<option value="//api/name/height">&nbsp;&nbsp;&nbsp;&nbsp;height</option>
<option value="//api/name/imageURL">&nbsp;&nbsp;&nbsp;&nbsp;imageURL</option>
<option value="//api/name/lastName">&nbsp;&nbsp;&nbsp;&nbsp;lastName</option>
<option value="//api/name/weight">&nbsp;&nbsp;&nbsp;&nbsp;weight</option>
<option value="//api/name/xid">&nbsp;&nbsp;&nbsp;&nbsp;xid</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/firstName">firstName</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/gender">gender</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/height">height</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/imageURL">imageURL</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lastName">lastName</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/weight">weight</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/xid">xid</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUser Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUser Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h<br />UPUserAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Represents a logged in user.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/xid">&nbsp;&nbsp;xid</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/firstName">&nbsp;&nbsp;firstName</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/lastName">&nbsp;&nbsp;lastName</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/imageURL">&nbsp;&nbsp;imageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/weight">&nbsp;&nbsp;weight</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/height">&nbsp;&nbsp;height</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/gender">&nbsp;&nbsp;gender</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/firstName" title="firstName"></a>
<h3 class="subsubtitle method-title">firstName</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s first name.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *firstName</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s first name.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/gender" title="gender"></a>
<h3 class="subsubtitle method-title">gender</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s gender.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPUserGender gender</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s gender.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/height" title="height"></a>
<h3 class="subsubtitle method-title">height</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s height, in meters.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *height</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s height, in meters.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/imageURL" title="imageURL"></a>
<h3 class="subsubtitle method-title">imageURL</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s image URL.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *imageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s image URL.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/lastName" title="lastName"></a>
<h3 class="subsubtitle method-title">lastName</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s last name.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *lastName</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s last name.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/weight" title="weight"></a>
<h3 class="subsubtitle method-title">weight</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s most recent weight, in kilograms.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *weight</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s most recent weight, in kilograms.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/xid" title="xid"></a>
<h3 class="subsubtitle method-title">xid</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s unique identifier.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *xid</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s unique identifier.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-516
View File
@@ -1,516 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/getCurrentUserWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getCurrentUserWithCompletion:</option>
<option value="//api/name/getFriendsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getFriendsWithCompletion:</option>
<option value="//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</option>
<option value="//api/name/getUserGoalsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getUserGoalsWithCompletion:</option>
<option value="//api/name/getUserSharingSettingsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getUserSharingSettingsWithCompletion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getCurrentUserWithCompletion:">getCurrentUserWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getFriendsWithCompletion:">getFriendsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getUserGoalsWithCompletion:">getUserGoalsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getUserSharingSettingsWithCompletion:">getUserSharingSettingsWithCompletion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h<br />UPUserAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the logged in user.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getCurrentUserWithCompletion:">+&nbsp;getCurrentUserWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getFriendsWithCompletion:">+&nbsp;getFriendsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">+&nbsp;getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getUserGoalsWithCompletion:">+&nbsp;getUserGoalsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getUserSharingSettingsWithCompletion:">+&nbsp;getUserSharingSettingsWithCompletion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/getCurrentUserWithCompletion:" title="getCurrentUserWithCompletion:"></a>
<h3 class="subsubtitle method-title">getCurrentUserWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets details about the current user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getCurrentUserWithCompletion:(UPUserAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets details about the current user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getFriendsWithCompletion:" title="getFriendsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getFriendsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets a list of the current user&rsquo;s friend xids.
These can be used to map the user&rsquo;s friends with other users registered with the 3rd party application.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getFriendsWithCompletion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets a list of the current user&rsquo;s friend xids.
These can be used to map the user&rsquo;s friends with other users registered with the 3rd party application.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:" title="getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:"></a>
<h3 class="subsubtitle method-title">getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</h3>
<div class="method-subsection brief-description">
<p>Gets a set of trends about the user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getTrendsWithEndDate:(NSDate *)<em>endDate</em> rangeType:(UPUserTrendsRangeType)<em>rangeType</em> rangeDuration:(NSUInteger)<em>rangeDuration</em> bucketSize:(UPUserTrendsBucketSize)<em>bucketSize</em> completion:(UPUserTrendsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets a set of trends about the user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getUserGoalsWithCompletion:" title="getUserGoalsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getUserGoalsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets the user&rsquo;s most recent goals.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getUserGoalsWithCompletion:(UPUserGoalsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets the user&rsquo;s most recent goals.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getUserSharingSettingsWithCompletion:" title="getUserSharingSettingsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getUserSharingSettingsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets the user&rsquo;s sharing settings.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getUserSharingSettingsWithCompletion:(UPUserSharingSettingsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets the user&rsquo;s sharing settings.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-997
View File
@@ -1,997 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserGoals Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserGoals Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/bodyWeight">&nbsp;&nbsp;&nbsp;&nbsp;bodyWeight</option>
<option value="//api/name/eatCalcium">&nbsp;&nbsp;&nbsp;&nbsp;eatCalcium</option>
<option value="//api/name/eatCarbs">&nbsp;&nbsp;&nbsp;&nbsp;eatCarbs</option>
<option value="//api/name/eatCholesterol">&nbsp;&nbsp;&nbsp;&nbsp;eatCholesterol</option>
<option value="//api/name/eatFiber">&nbsp;&nbsp;&nbsp;&nbsp;eatFiber</option>
<option value="//api/name/eatProtein">&nbsp;&nbsp;&nbsp;&nbsp;eatProtein</option>
<option value="//api/name/eatSaturatedFat">&nbsp;&nbsp;&nbsp;&nbsp;eatSaturatedFat</option>
<option value="//api/name/eatSodium">&nbsp;&nbsp;&nbsp;&nbsp;eatSodium</option>
<option value="//api/name/eatSugar">&nbsp;&nbsp;&nbsp;&nbsp;eatSugar</option>
<option value="//api/name/eatUnsaturatedFat">&nbsp;&nbsp;&nbsp;&nbsp;eatUnsaturatedFat</option>
<option value="//api/name/moveSteps">&nbsp;&nbsp;&nbsp;&nbsp;moveSteps</option>
<option value="//api/name/sleepTotal">&nbsp;&nbsp;&nbsp;&nbsp;sleepTotal</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/bodyWeight">bodyWeight</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatCalcium">eatCalcium</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatCarbs">eatCarbs</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatCholesterol">eatCholesterol</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatFiber">eatFiber</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatProtein">eatProtein</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatSaturatedFat">eatSaturatedFat</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatSodium">eatSodium</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatSugar">eatSugar</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/eatUnsaturatedFat">eatUnsaturatedFat</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/moveSteps">moveSteps</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sleepTotal">sleepTotal</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserGoals Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserGoals Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h<br />UPUserAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The user&rsquo;s current goals.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/moveSteps">&nbsp;&nbsp;moveSteps</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/sleepTotal">&nbsp;&nbsp;sleepTotal</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/bodyWeight">&nbsp;&nbsp;bodyWeight</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatSaturatedFat">&nbsp;&nbsp;eatSaturatedFat</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatSodium">&nbsp;&nbsp;eatSodium</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatCarbs">&nbsp;&nbsp;eatCarbs</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatCholesterol">&nbsp;&nbsp;eatCholesterol</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatFiber">&nbsp;&nbsp;eatFiber</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatProtein">&nbsp;&nbsp;eatProtein</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatCalcium">&nbsp;&nbsp;eatCalcium</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatSugar">&nbsp;&nbsp;eatSugar</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/eatUnsaturatedFat">&nbsp;&nbsp;eatUnsaturatedFat</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/bodyWeight" title="bodyWeight"></a>
<h3 class="subsubtitle method-title">bodyWeight</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s current weight goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *bodyWeight</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s current weight goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatCalcium" title="eatCalcium"></a>
<h3 class="subsubtitle method-title">eatCalcium</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s calcium goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatCalcium</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s calcium goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatCarbs" title="eatCarbs"></a>
<h3 class="subsubtitle method-title">eatCarbs</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s carbohydrate goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatCarbs</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s carbohydrate goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatCholesterol" title="eatCholesterol"></a>
<h3 class="subsubtitle method-title">eatCholesterol</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s cholesterol goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatCholesterol</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s cholesterol goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatFiber" title="eatFiber"></a>
<h3 class="subsubtitle method-title">eatFiber</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s fiber goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatFiber</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s fiber goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatProtein" title="eatProtein"></a>
<h3 class="subsubtitle method-title">eatProtein</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s protein goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatProtein</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s protein goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatSaturatedFat" title="eatSaturatedFat"></a>
<h3 class="subsubtitle method-title">eatSaturatedFat</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s saturated fat goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatSaturatedFat</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s saturated fat goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatSodium" title="eatSodium"></a>
<h3 class="subsubtitle method-title">eatSodium</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s sodium goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatSodium</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s sodium goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatSugar" title="eatSugar"></a>
<h3 class="subsubtitle method-title">eatSugar</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s sugar goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatSugar</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s sugar goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/eatUnsaturatedFat" title="eatUnsaturatedFat"></a>
<h3 class="subsubtitle method-title">eatUnsaturatedFat</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s unsaturated fat goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *eatUnsaturatedFat</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s unsaturated fat goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/moveSteps" title="moveSteps"></a>
<h3 class="subsubtitle method-title">moveSteps</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s daily step goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *moveSteps</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s daily step goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/sleepTotal" title="sleepTotal"></a>
<h3 class="subsubtitle method-title">sleepTotal</h3>
<div class="method-subsection brief-description">
<p>The user&rsquo;s daily sleep goal.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSNumber *sleepTotal</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The user&rsquo;s daily sleep goal.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-640
View File
@@ -1,640 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserSharingSettings Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserSharingSettings Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/shareBody">&nbsp;&nbsp;&nbsp;&nbsp;shareBody</option>
<option value="//api/name/shareEat">&nbsp;&nbsp;&nbsp;&nbsp;shareEat</option>
<option value="//api/name/shareMood">&nbsp;&nbsp;&nbsp;&nbsp;shareMood</option>
<option value="//api/name/shareMove">&nbsp;&nbsp;&nbsp;&nbsp;shareMove</option>
<option value="//api/name/shareSleep">&nbsp;&nbsp;&nbsp;&nbsp;shareSleep</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareBody">shareBody</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareEat">shareEat</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareMood">shareMood</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareMove">shareMove</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/shareSleep">shareSleep</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserSharingSettings Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserSharingSettings Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value"><a href="../Protocols/UPBaseObject.html">UPBaseObject</a></td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h<br />UPUserAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The user&rsquo;s sharing settings.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/shareBody">&nbsp;&nbsp;shareBody</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/shareEat">&nbsp;&nbsp;shareEat</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/shareMood">&nbsp;&nbsp;shareMood</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/shareMove">&nbsp;&nbsp;shareMove</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/shareSleep">&nbsp;&nbsp;shareSleep</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/shareBody" title="shareBody"></a>
<h3 class="subsubtitle method-title">shareBody</h3>
<div class="method-subsection brief-description">
<p>Whether the user has chosen to share body events.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shareBody</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Whether the user has chosen to share body events.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/shareEat" title="shareEat"></a>
<h3 class="subsubtitle method-title">shareEat</h3>
<div class="method-subsection brief-description">
<p>Whether the user has chosen to meals.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shareEat</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Whether the user has chosen to meals.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/shareMood" title="shareMood"></a>
<h3 class="subsubtitle method-title">shareMood</h3>
<div class="method-subsection brief-description">
<p>Whether the user has chosen to share mood events.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shareMood</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Whether the user has chosen to share mood events.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/shareMove" title="shareMove"></a>
<h3 class="subsubtitle method-title">shareMove</h3>
<div class="method-subsection brief-description">
<p>Whether the user has chosen to share move events.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shareMove</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Whether the user has chosen to share move events.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/shareSleep" title="shareSleep"></a>
<h3 class="subsubtitle method-title">shareSleep</h3>
<div class="method-subsection brief-description">
<p>Whether the user has chosen to share sleep events.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) BOOL shareSleep</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Whether the user has chosen to share sleep events.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection brief-description">
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Decodes an object from a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-820
View File
@@ -1,820 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPWorkout Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPWorkout Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/image">&nbsp;&nbsp;&nbsp;&nbsp;image</option>
<option value="//api/name/imageURL">&nbsp;&nbsp;&nbsp;&nbsp;imageURL</option>
<option value="//api/name/intensity">&nbsp;&nbsp;&nbsp;&nbsp;intensity</option>
<option value="//api/name/routeImageURL">&nbsp;&nbsp;&nbsp;&nbsp;routeImageURL</option>
<option value="//api/name/timeCompleted">&nbsp;&nbsp;&nbsp;&nbsp;timeCompleted</option>
<option value="//api/name/type">&nbsp;&nbsp;&nbsp;&nbsp;type</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/workoutWithType:startTime:endTime:intensity:caloriesBurned:">&nbsp;&nbsp;&nbsp;&nbsp;+ workoutWithType:startTime:endTime:intensity:caloriesBurned:</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/apiType">&nbsp;&nbsp;&nbsp;&nbsp;- apiType</option>
<option value="//api/name/decodeFromDictionary:">&nbsp;&nbsp;&nbsp;&nbsp;- decodeFromDictionary:</option>
<option value="//api/name/encodeToDictionary">&nbsp;&nbsp;&nbsp;&nbsp;- encodeToDictionary</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/image">image</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/imageURL">imageURL</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/intensity">intensity</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/routeImageURL">routeImageURL</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/timeCompleted">timeCompleted</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/type">type</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/workoutWithType:startTime:endTime:intensity:caloriesBurned:">workoutWithType:startTime:endTime:intensity:caloriesBurned:</a></span></li>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/apiType">apiType</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/decodeFromDictionary:">decodeFromDictionary:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/encodeToDictionary">encodeToDictionary</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPWorkout Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPWorkout Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value"><a href="../Classes/UPMove.html">UPMove</a> : <a href="../Classes/UPBaseEvent.html">UPBaseEvent</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPWorkoutAPI.h<br />UPWorkoutAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>A workout represents a duration within the days move where the user worked out.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/workoutWithType:startTime:endTime:intensity:caloriesBurned:">+&nbsp;workoutWithType:startTime:endTime:intensity:caloriesBurned:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/type">&nbsp;&nbsp;type</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/intensity">&nbsp;&nbsp;intensity</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/timeCompleted">&nbsp;&nbsp;timeCompleted</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/imageURL">&nbsp;&nbsp;imageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/routeImageURL">&nbsp;&nbsp;routeImageURL</a></code>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/image">&nbsp;&nbsp;image</a></code>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<h3 class="subsubtitle task-title">Other Methods</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/apiType">&ndash;&nbsp;apiType</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/decodeFromDictionary:">&ndash;&nbsp;decodeFromDictionary:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/encodeToDictionary">&ndash;&nbsp;encodeToDictionary</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Properties" name="properties"></a>
<h2 class="subtitle subtitle-methods">Properties</h2>
<div class="section-method">
<a name="//api/name/image" title="image"></a>
<h3 class="subsubtitle method-title">image</h3>
<div class="method-subsection brief-description">
<p>The workout&rsquo;s image.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) UPImage *image</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The workout&rsquo;s image.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/imageURL" title="imageURL"></a>
<h3 class="subsubtitle method-title">imageURL</h3>
<div class="method-subsection brief-description">
<p>The URL for the workout&rsquo;s <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *imageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The URL for the workout&rsquo;s <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/intensity" title="intensity"></a>
<h3 class="subsubtitle method-title">intensity</h3>
<div class="method-subsection brief-description">
<p>The workout intensity.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPWorkoutIntensity intensity</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The workout intensity.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/routeImageURL" title="routeImageURL"></a>
<h3 class="subsubtitle method-title">routeImageURL</h3>
<div class="method-subsection brief-description">
<p>The URL for the workout&rsquo;s route <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSString *routeImageURL</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The URL for the workout&rsquo;s route <a href="#//api/name/image">image</a>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/timeCompleted" title="timeCompleted"></a>
<h3 class="subsubtitle method-title">timeCompleted</h3>
<div class="method-subsection brief-description">
<p>The time the workout was completed.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong) NSDate *timeCompleted</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The time the workout was completed.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/type" title="type"></a>
<h3 class="subsubtitle method-title">type</h3>
<div class="method-subsection brief-description">
<p>The workout type.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) UPWorkoutType type</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The workout type.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/workoutWithType:startTime:endTime:intensity:caloriesBurned:" title="workoutWithType:startTime:endTime:intensity:caloriesBurned:"></a>
<h3 class="subsubtitle method-title">workoutWithType:startTime:endTime:intensity:caloriesBurned:</h3>
<div class="method-subsection brief-description">
<p>Create a new workout event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (UPWorkout *)workoutWithType:(UPWorkoutType)<em>type</em> startTime:(NSDate *)<em>startTime</em> endTime:(NSDate *)<em>endTime</em> intensity:(UPWorkoutIntensity)<em>intensity</em> caloriesBurned:(NSNumber *)<em>caloriesBurned</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>type</em></dt>
<dd><p>The <a href="#//api/name/type">type</a> of workout that is being created.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>startTime</em></dt>
<dd><p>The time when the workout was started. The time must be in the past.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>endTime</em></dt>
<dd><p>The time the workout had finished. The time must be in the past.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>intensity</em></dt>
<dd><p>The <a href="#//api/name/intensity">intensity</a> of the workout.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>caloriesBurned</em></dt>
<dd><p>The number of calories burned during the workout.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>Returns a new workout event.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Create a new workout event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/apiType" title="apiType"></a>
<h3 class="subsubtitle method-title">apiType</h3>
<div class="method-subsection method-declaration"><code>- (NSString *)apiType</code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/decodeFromDictionary:" title="decodeFromDictionary:"></a>
<h3 class="subsubtitle method-title">decodeFromDictionary:</h3>
<div class="method-subsection method-declaration"><code>- (void)decodeFromDictionary:(NSDictionary *)<em>dictionary</em></code></div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/encodeToDictionary" title="encodeToDictionary"></a>
<h3 class="subsubtitle method-title">encodeToDictionary</h3>
<div class="method-subsection brief-description">
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection method-declaration"><code>- (NSDictionary *)encodeToDictionary</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Encodes an object to a JSON dictionary.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBaseEventAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-726
View File
@@ -1,726 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPWorkoutAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPWorkoutAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/deleteWorkout:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ deleteWorkout:completion:</option>
<option value="//api/name/getWorkoutGraphImage:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getWorkoutGraphImage:completion:</option>
<option value="//api/name/getWorkoutTicks:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getWorkoutTicks:completion:</option>
<option value="//api/name/getWorkoutsFromStartDate:toEndDate:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getWorkoutsFromStartDate:toEndDate:completion:</option>
<option value="//api/name/getWorkoutsWithLimit:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getWorkoutsWithLimit:completion:</option>
<option value="//api/name/postWorkout:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ postWorkout:completion:</option>
<option value="//api/name/refreshWorkout:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ refreshWorkout:completion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/deleteWorkout:completion:">deleteWorkout:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getWorkoutGraphImage:completion:">getWorkoutGraphImage:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getWorkoutTicks:completion:">getWorkoutTicks:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getWorkoutsFromStartDate:toEndDate:completion:">getWorkoutsFromStartDate:toEndDate:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getWorkoutsWithLimit:completion:">getWorkoutsWithLimit:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/postWorkout:completion:">postWorkout:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/refreshWorkout:completion:">refreshWorkout:completion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPWorkoutAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPWorkoutAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPWorkoutAPI.h<br />UPWorkoutAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the user&rsquo;s workouts.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getWorkoutsWithLimit:completion:">+&nbsp;getWorkoutsWithLimit:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getWorkoutsFromStartDate:toEndDate:completion:">+&nbsp;getWorkoutsFromStartDate:toEndDate:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/postWorkout:completion:">+&nbsp;postWorkout:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/refreshWorkout:completion:">+&nbsp;refreshWorkout:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/deleteWorkout:completion:">+&nbsp;deleteWorkout:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getWorkoutGraphImage:completion:">+&nbsp;getWorkoutGraphImage:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getWorkoutTicks:completion:">+&nbsp;getWorkoutTicks:completion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/deleteWorkout:completion:" title="deleteWorkout:completion:"></a>
<h3 class="subsubtitle method-title">deleteWorkout:completion:</h3>
<div class="method-subsection brief-description">
<p>Delete an existing workout event. The event must belong to the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)deleteWorkout:(UPWorkout *)<em>workout</em> completion:(UPBaseEventAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>workout</em></dt>
<dd><p>The existing workout event to be deleted.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Delete an existing workout event. The event must belong to the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getWorkoutGraphImage:completion:" title="getWorkoutGraphImage:completion:"></a>
<h3 class="subsubtitle method-title">getWorkoutGraphImage:completion:</h3>
<div class="method-subsection brief-description">
<p>Request the graph image for the workout event.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getWorkoutGraphImage:(UPWorkout *)<em>workout</em> completion:(UPBaseEventAPIImageCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>workout</em></dt>
<dd><p>The workout for which to request the graph.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the result image.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request the graph image for the workout event.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getWorkoutTicks:completion:" title="getWorkoutTicks:completion:"></a>
<h3 class="subsubtitle method-title">getWorkoutTicks:completion:</h3>
<div class="method-subsection brief-description">
<p>Requests individual ticks in the workout. Ticks have finer grain detail about the move.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getWorkoutTicks:(UPWorkout *)<em>workout</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>workout</em></dt>
<dd><p>The workout for which to request the ticks.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the array of ticks.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Requests individual ticks in the workout. Ticks have finer grain detail about the move.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getWorkoutsFromStartDate:toEndDate:completion:" title="getWorkoutsFromStartDate:toEndDate:completion:"></a>
<h3 class="subsubtitle method-title">getWorkoutsFromStartDate:toEndDate:completion:</h3>
<div class="method-subsection brief-description">
<p>Request workout events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getWorkoutsFromStartDate:(NSDate *)<em>startDate</em> toEndDate:(NSDate *)<em>endDate</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>startDate</em></dt>
<dd><p>Request workout events after this date. The date must be in the past.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>endDate</em></dt>
<dd><p>Request workout events before this date. The date must be in the past.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request workout events between two points in time for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getWorkoutsWithLimit:completion:" title="getWorkoutsWithLimit:completion:"></a>
<h3 class="subsubtitle method-title">getWorkoutsWithLimit:completion:</h3>
<div class="method-subsection brief-description">
<p>Request recent workout events for the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getWorkoutsWithLimit:(NSUInteger)<em>limit</em> completion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>limit</em></dt>
<dd><p>The maximum number of workout events to be returned.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the results.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request recent workout events for the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/postWorkout:completion:" title="postWorkout:completion:"></a>
<h3 class="subsubtitle method-title">postWorkout:completion:</h3>
<div class="method-subsection brief-description">
<p>Post a new workout event to the feed of the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)postWorkout:(UPWorkout *)<em>workout</em> completion:(UPWorkoutAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>workout</em></dt>
<dd><p>A new workout event to be added to the feed.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon request completion.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Post a new workout event to the feed of the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/refreshWorkout:completion:" title="refreshWorkout:completion:"></a>
<h3 class="subsubtitle method-title">refreshWorkout:completion:</h3>
<div class="method-subsection brief-description">
<p>Request an existing workout event. The event must be visible to the currently authenticated user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)refreshWorkout:(UPWorkout *)<em>workout</em> completion:(UPWorkoutAPICompletion)<em>completion</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>workout</em></dt>
<dd><p>An existing workout event.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>completion</em></dt>
<dd><p>Block to be executed upon completion. The block is passed the result.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Request an existing workout event. The event must be visible to the currently authenticated user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-302
View File
@@ -1,302 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPBandEventActionType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPBandEventActionType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPBandEventActionType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPBandEventActionType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPBandEventAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPBandEventActionType</h3>
<div class="section section-overview">
<p>Available action types for hardware band events.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPBandEventActionType ) {<br/>
&nbsp;&nbsp; <a href="">UPBandEventActionTypeEnterSleepMode</a>,<br/>
&nbsp;&nbsp; <a href="">UPBandEventActionTypeExitSleepMode</a>,<br/>
&nbsp;&nbsp; <a href="">UPBandEventActionTypeEnterStopwatchMode</a>,<br/>
&nbsp;&nbsp; <a href="">UPBandEventActionTypeExitStopwatchMode</a>,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPBandEventActionTypeEnterSleepMode"></a><code>UPBandEventActionTypeEnterSleepMode</code></dt>
<dd>
<p>Available action types for hardware band events.</p>
<p>
Declared In <code class="declared-in-ref">UPBandEventAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPBandEventActionTypeExitSleepMode"></a><code>UPBandEventActionTypeExitSleepMode</code></dt>
<dd>
<p>Available action types for hardware band events.</p>
<p>
Declared In <code class="declared-in-ref">UPBandEventAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPBandEventActionTypeEnterStopwatchMode"></a><code>UPBandEventActionTypeEnterStopwatchMode</code></dt>
<dd>
<p>Available action types for hardware band events.</p>
<p>
Declared In <code class="declared-in-ref">UPBandEventAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPBandEventActionTypeExitStopwatchMode"></a><code>UPBandEventActionTypeExitStopwatchMode</code></dt>
<dd>
<p>Available action types for hardware band events.</p>
<p>
Declared In <code class="declared-in-ref">UPBandEventAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPBandEventAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-302
View File
@@ -1,302 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMealItemFoodType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMealItemFoodType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMealItemFoodType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMealItemFoodType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMealAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPMealItemFoodType</h3>
<div class="section section-overview">
<p>The available food types of a meal item.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPMealItemFoodType ) {<br/>
&nbsp;&nbsp; <a href="">UPMealItemFoodTypeGeneric</a> = 1,<br/>
&nbsp;&nbsp; <a href="">UPMealItemFoodTypeRestaurant</a> = 2,<br/>
&nbsp;&nbsp; <a href="">UPMealItemFoodTypeBrand</a> = 3,<br/>
&nbsp;&nbsp; <a href="">UPMealItemFoodTypePersonal</a> = 4,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPMealItemFoodTypeGeneric"></a><code>UPMealItemFoodTypeGeneric</code></dt>
<dd>
<p>The available food types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemFoodTypeRestaurant"></a><code>UPMealItemFoodTypeRestaurant</code></dt>
<dd>
<p>The available food types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemFoodTypeBrand"></a><code>UPMealItemFoodTypeBrand</code></dt>
<dd>
<p>The available food types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemFoodTypePersonal"></a><code>UPMealItemFoodTypePersonal</code></dt>
<dd>
<p>The available food types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-321
View File
@@ -1,321 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMealItemServingType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMealItemServingType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMealItemServingType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMealItemServingType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMealAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPMealItemServingType</h3>
<div class="section section-overview">
<p>The available serving types of a meal item.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPMealItemServingType ) {<br/>
&nbsp;&nbsp; <a href="">UPMealItemServingTypePlate</a> = 1,<br/>
&nbsp;&nbsp; <a href="">UPMealItemServingTypeCup</a> = 2,<br/>
&nbsp;&nbsp; <a href="">UPMealItemServingTypeBowl</a> = 3,<br/>
&nbsp;&nbsp; <a href="">UPMealItemServingTypeScale</a> = 4,<br/>
&nbsp;&nbsp; <a href="">UPMealItemServingTypeGlass</a> = 5,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPMealItemServingTypePlate"></a><code>UPMealItemServingTypePlate</code></dt>
<dd>
<p>The available serving types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemServingTypeCup"></a><code>UPMealItemServingTypeCup</code></dt>
<dd>
<p>The available serving types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemServingTypeBowl"></a><code>UPMealItemServingTypeBowl</code></dt>
<dd>
<p>The available serving types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemServingTypeScale"></a><code>UPMealItemServingTypeScale</code></dt>
<dd>
<p>The available serving types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealItemServingTypeGlass"></a><code>UPMealItemServingTypeGlass</code></dt>
<dd>
<p>The available serving types of a meal item.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-283
View File
@@ -1,283 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMealSubType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMealSubType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMealSubType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMealSubType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMealAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPMealSubType</h3>
<div class="section section-overview">
<p>The available sub types of a meal.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPMealSubType ) {<br/>
&nbsp;&nbsp; <a href="">UPMealSubTypeBreakfast</a> = 1,<br/>
&nbsp;&nbsp; <a href="">UPMealSubTypeLunch</a> = 2,<br/>
&nbsp;&nbsp; <a href="">UPMealSubTypeDinner</a> = 3,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPMealSubTypeBreakfast"></a><code>UPMealSubTypeBreakfast</code></dt>
<dd>
<p>The available sub types of a meal.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealSubTypeLunch"></a><code>UPMealSubTypeLunch</code></dt>
<dd>
<p>The available sub types of a meal.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMealSubTypeDinner"></a><code>UPMealSubTypeDinner</code></dt>
<dd>
<p>The available sub types of a meal.</p>
<p>
Declared In <code class="declared-in-ref">UPMealAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMealAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-378
View File
@@ -1,378 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPMoodType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPMoodType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPMoodType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPMoodType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPMoodAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPMoodType</h3>
<div class="section section-overview">
<p>The avaiable types of moods.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPMoodType ) {<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeAmazing</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypePumpedUp</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeEnergized</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeGood</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeMeh</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeDragging</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeExhausted</a>,<br/>
&nbsp;&nbsp; <a href="">UPMoodTypeTotallyDone</a>,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPMoodTypeAmazing"></a><code>UPMoodTypeAmazing</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypePumpedUp"></a><code>UPMoodTypePumpedUp</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeEnergized"></a><code>UPMoodTypeEnergized</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeGood"></a><code>UPMoodTypeGood</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeMeh"></a><code>UPMoodTypeMeh</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeDragging"></a><code>UPMoodTypeDragging</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeExhausted"></a><code>UPMoodTypeExhausted</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPMoodTypeTotallyDone"></a><code>UPMoodTypeTotallyDone</code></dt>
<dd>
<p>The avaiable types of moods.</p>
<p>
Declared In <code class="declared-in-ref">UPMoodAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPMoodAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-599
View File
@@ -1,599 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPPlatformAuthScope Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPPlatformAuthScope Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPPlatformAuthScope Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPPlatformAuthScope Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPPlatform.h</td>
</tr><tr>
<td class="specification-title">References</td>
<td class="specification-value">https://jawbone.com/up/developer/authentication</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPPlatformAuthScope</h3>
<div class="section section-overview">
<p>The authentication scope asked of the user.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_OPTIONS(NSUInteger, UPPlatformAuthScope ) {<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeBasicRead</a> = 1 &lt; &lt; 0,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeExtendedRead</a> = 1 &lt; &lt; 1,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeLocationRead</a> = 1 &lt; &lt; 2,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeFriendsRead</a> = 1 &lt; &lt; 3,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMoodRead</a> = 1 &lt; &lt; 4,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMoodWrite</a> = 1 &lt; &lt; 5,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMoveRead</a> = 1 &lt; &lt; 6,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMoveWrite</a> = 1 &lt; &lt; 7,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeSleepRead</a> = 1 &lt; &lt; 8,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeSleepWrite</a> = 1 &lt; &lt; 9,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMealRead</a> = 1 &lt; &lt; 10,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeMealWrite</a> = 1 &lt; &lt; 11,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeWeightRead</a> = 1 &lt; &lt; 12,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeWeightWrite</a> = 1 &lt; &lt; 13,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeCardiacRead</a> = 1 &lt; &lt; 14,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeCardiacWrite</a> = 1 &lt; &lt; 15,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeGenericRead</a> = 1 &lt; &lt; 16,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeGenericWrite</a> = 1 &lt; &lt; 17,<br/>
&nbsp;&nbsp; <a href="">UPPlatformAuthScopeAll</a> = 1 &lt; &lt; 18,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPPlatformAuthScopeBasicRead"></a><code>UPPlatformAuthScopeBasicRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeExtendedRead"></a><code>UPPlatformAuthScopeExtendedRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeLocationRead"></a><code>UPPlatformAuthScopeLocationRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeFriendsRead"></a><code>UPPlatformAuthScopeFriendsRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMoodRead"></a><code>UPPlatformAuthScopeMoodRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMoodWrite"></a><code>UPPlatformAuthScopeMoodWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMoveRead"></a><code>UPPlatformAuthScopeMoveRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMoveWrite"></a><code>UPPlatformAuthScopeMoveWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeSleepRead"></a><code>UPPlatformAuthScopeSleepRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeSleepWrite"></a><code>UPPlatformAuthScopeSleepWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMealRead"></a><code>UPPlatformAuthScopeMealRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeMealWrite"></a><code>UPPlatformAuthScopeMealWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeWeightRead"></a><code>UPPlatformAuthScopeWeightRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeWeightWrite"></a><code>UPPlatformAuthScopeWeightWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeCardiacRead"></a><code>UPPlatformAuthScopeCardiacRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeCardiacWrite"></a><code>UPPlatformAuthScopeCardiacWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeGenericRead"></a><code>UPPlatformAuthScopeGenericRead</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeGenericWrite"></a><code>UPPlatformAuthScopeGenericWrite</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
<dt><a name="" title="UPPlatformAuthScopeAll"></a><code>UPPlatformAuthScopeAll</code></dt>
<dd>
<p>The authentication scope asked of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPPlatform.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection see-also-section">
<h4 class="method-subtitle">See Also</h4>
<ul>
<li><code><p><a href="https://jawbone.com/up/developer/authentication">https://jawbone.com/up/developer/authentication</a></p></code></li>
</ul>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPPlatform.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-264
View File
@@ -1,264 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserGender Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserGender Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserGender Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserGender Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPUserGender</h3>
<div class="section section-overview">
<p>The gender of the user.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPUserGender ) {<br/>
&nbsp;&nbsp; <a href="">UPUserGenderMale</a>,<br/>
&nbsp;&nbsp; <a href="">UPUserGenderFemale</a>,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPUserGenderMale"></a><code>UPUserGenderMale</code></dt>
<dd>
<p>The gender of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPUserGenderFemale"></a><code>UPUserGenderFemale</code></dt>
<dd>
<p>The gender of the user.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-302
View File
@@ -1,302 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserTrendsBucketSize Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserTrendsBucketSize Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserTrendsBucketSize Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserTrendsBucketSize Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPUserTrendsBucketSize</h3>
<div class="section section-overview">
<p>The bucket size to request when getting user trends.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPUserTrendsBucketSize ) {<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsBucketSizeDays</a>,<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsBucketSizeWeeks</a>,<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsBucketSizeMonths</a>,<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsBucketSizeYears</a>,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPUserTrendsBucketSizeDays"></a><code>UPUserTrendsBucketSizeDays</code></dt>
<dd>
<p>The bucket size to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPUserTrendsBucketSizeWeeks"></a><code>UPUserTrendsBucketSizeWeeks</code></dt>
<dd>
<p>The bucket size to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPUserTrendsBucketSizeMonths"></a><code>UPUserTrendsBucketSizeMonths</code></dt>
<dd>
<p>The bucket size to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPUserTrendsBucketSizeYears"></a><code>UPUserTrendsBucketSizeYears</code></dt>
<dd>
<p>The bucket size to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-264
View File
@@ -1,264 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserTrendsRangeType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserTrendsRangeType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserTrendsRangeType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserTrendsRangeType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPUserTrendsRangeType</h3>
<div class="section section-overview">
<p>The type of range to request when getting user trends.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPUserTrendsRangeType ) {<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsRangeTypeDays</a>,<br/>
&nbsp;&nbsp; <a href="">UPUserTrendsRangeTypeWeeks</a>,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPUserTrendsRangeTypeDays"></a><code>UPUserTrendsRangeTypeDays</code></dt>
<dd>
<p>The type of range to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPUserTrendsRangeTypeWeeks"></a><code>UPUserTrendsRangeTypeWeeks</code></dt>
<dd>
<p>The type of range to request when getting user trends.</p>
<p>
Declared In <code class="declared-in-ref">UPUserAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-321
View File
@@ -1,321 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPWorkoutIntensity Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPWorkoutIntensity Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPWorkoutIntensity Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPWorkoutIntensity Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPWorkoutAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPWorkoutIntensity</h3>
<div class="section section-overview">
<p>The available types of workout intensities.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPWorkoutIntensity ) {<br/>
&nbsp;&nbsp; <a href="">UPWorkoutIntensityEasy</a> = 1,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutIntensityModerate</a> = 2,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutIntensityIntermediate</a> = 3,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutIntensityDifficult</a> = 4,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutIntensityHard</a> = 5,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPWorkoutIntensityEasy"></a><code>UPWorkoutIntensityEasy</code></dt>
<dd>
<p>The available types of workout intensities.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutIntensityModerate"></a><code>UPWorkoutIntensityModerate</code></dt>
<dd>
<p>The available types of workout intensities.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutIntensityIntermediate"></a><code>UPWorkoutIntensityIntermediate</code></dt>
<dd>
<p>The available types of workout intensities.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutIntensityDifficult"></a><code>UPWorkoutIntensityDifficult</code></dt>
<dd>
<p>The available types of workout intensities.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutIntensityHard"></a><code>UPWorkoutIntensityHard</code></dt>
<dd>
<p>The available types of workout intensities.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
-758
View File
@@ -1,758 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPWorkoutType Constants Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPWorkoutType Constants Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPWorkoutType Constants Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPWorkoutType Constants Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPWorkoutAPI.h</td>
</tr>
</tbody></table></div>
<h3 class="subsubtitle method-title">UPWorkoutType</h3>
<div class="section section-overview">
<p>The available types of workouts.</p>
</div>
<div class="section">
<!-- display enum values -->
<h4 class="method-subtitle">Definition</h4>
<code>typedef NS_ENUM(NSUInteger, UPWorkoutType ) {<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeWalk</a> = 1,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeRun</a> = 2,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeWeightLifting</a> = 3,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeCrossTrain</a> = 4,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeNikeTraining</a> = 5,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeYoga</a> = 6,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypePilates</a> = 7,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeBodyWeightExercise</a> = 8,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeCrossfit</a> = 9,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeP90X</a> = 10,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeZumba</a> = 11,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeTRX</a> = 12,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeSwim</a> = 13,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeBike</a> = 14,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeElliptical</a> = 15,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeBarMethod</a> = 16,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeKinectExercise</a> = 17,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeTennis</a> = 18,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeBasketball</a> = 19,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeGolf</a> = 20,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeSoccer</a> = 21,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeSkiOrSnowboard</a> = 22,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeDance</a> = 23,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeHike</a> = 24,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeCrossCountrySki</a> = 25,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeStationaryBike</a> = 26,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeCardio</a> = 27,<br/>
&nbsp;&nbsp; <a href="">UPWorkoutTypeGame</a> = 28,<br/>
};</code>
</div>
<div class="section section-methods">
<h4 class="method-subtitle">Constants</h4>
<dl class="termdef">
<dt><a name="" title="UPWorkoutTypeWalk"></a><code>UPWorkoutTypeWalk</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeRun"></a><code>UPWorkoutTypeRun</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeWeightLifting"></a><code>UPWorkoutTypeWeightLifting</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeCrossTrain"></a><code>UPWorkoutTypeCrossTrain</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeNikeTraining"></a><code>UPWorkoutTypeNikeTraining</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeYoga"></a><code>UPWorkoutTypeYoga</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypePilates"></a><code>UPWorkoutTypePilates</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeBodyWeightExercise"></a><code>UPWorkoutTypeBodyWeightExercise</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeCrossfit"></a><code>UPWorkoutTypeCrossfit</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeP90X"></a><code>UPWorkoutTypeP90X</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeZumba"></a><code>UPWorkoutTypeZumba</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeTRX"></a><code>UPWorkoutTypeTRX</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeSwim"></a><code>UPWorkoutTypeSwim</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeBike"></a><code>UPWorkoutTypeBike</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeElliptical"></a><code>UPWorkoutTypeElliptical</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeBarMethod"></a><code>UPWorkoutTypeBarMethod</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeKinectExercise"></a><code>UPWorkoutTypeKinectExercise</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeTennis"></a><code>UPWorkoutTypeTennis</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeBasketball"></a><code>UPWorkoutTypeBasketball</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeGolf"></a><code>UPWorkoutTypeGolf</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeSoccer"></a><code>UPWorkoutTypeSoccer</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeSkiOrSnowboard"></a><code>UPWorkoutTypeSkiOrSnowboard</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeDance"></a><code>UPWorkoutTypeDance</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeHike"></a><code>UPWorkoutTypeHike</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeCrossCountrySki"></a><code>UPWorkoutTypeCrossCountrySki</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeStationaryBike"></a><code>UPWorkoutTypeStationaryBike</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeCardio"></a><code>UPWorkoutTypeCardio</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
<dt><a name="" title="UPWorkoutTypeGame"></a><code>UPWorkoutTypeGame</code></dt>
<dd>
<p>The available types of workouts.</p>
<p>
Declared In <code class="declared-in-ref">UPWorkoutAPI.h</code>.
</p>
</dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPWorkoutAPI.h</code><br />
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-05-05)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+500
View File
@@ -0,0 +1,500 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
BFAA53D918367A6700D5912D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53D818367A6700D5912D /* Foundation.framework */; };
BFAA53DB18367A6700D5912D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53DA18367A6700D5912D /* CoreGraphics.framework */; };
BFAA53DD18367A6700D5912D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53DC18367A6700D5912D /* UIKit.framework */; };
BFAA53E318367A6700D5912D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BFAA53E118367A6700D5912D /* InfoPlist.strings */; };
BFAA53E518367A6700D5912D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = BFAA53E418367A6700D5912D /* main.m */; };
BFAA53E918367A6700D5912D /* HUAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = BFAA53E818367A6700D5912D /* HUAppDelegate.m */; };
BFAA53EC18367A6700D5912D /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = BFAA53EA18367A6700D5912D /* Main_iPhone.storyboard */; };
BFAA53F218367A6700D5912D /* HUViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BFAA53F118367A6700D5912D /* HUViewController.m */; };
BFAA53F418367A6700D5912D /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = BFAA53F318367A6700D5912D /* Images.xcassets */; };
BFAA53FB18367A6700D5912D /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53FA18367A6700D5912D /* XCTest.framework */; };
BFAA53FC18367A6700D5912D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53D818367A6700D5912D /* Foundation.framework */; };
BFAA53FD18367A6700D5912D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA53DC18367A6700D5912D /* UIKit.framework */; };
BFAA540518367A6700D5912D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = BFAA540318367A6700D5912D /* InfoPlist.strings */; };
BFAA540718367A6700D5912D /* HelloUPTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BFAA540618367A6700D5912D /* HelloUPTests.m */; };
BFAA541118367A7D00D5912D /* UPPlatformSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFAA541018367A7D00D5912D /* UPPlatformSDK.framework */; };
BFAA54161836815F00D5912D /* HUMealViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BFAA54141836815F00D5912D /* HUMealViewController.m */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
BFAA53FE18367A6700D5912D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFAA53CD18367A6700D5912D /* Project object */;
proxyType = 1;
remoteGlobalIDString = BFAA53D418367A6700D5912D;
remoteInfo = HelloUP;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
BFAA53D518367A6700D5912D /* HelloUP.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloUP.app; sourceTree = BUILT_PRODUCTS_DIR; };
BFAA53D818367A6700D5912D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
BFAA53DA18367A6700D5912D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
BFAA53DC18367A6700D5912D /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
BFAA53E018367A6700D5912D /* HelloUP-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HelloUP-Info.plist"; sourceTree = "<group>"; };
BFAA53E218367A6700D5912D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
BFAA53E418367A6700D5912D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
BFAA53E618367A6700D5912D /* HelloUP-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HelloUP-Prefix.pch"; sourceTree = "<group>"; };
BFAA53E718367A6700D5912D /* HUAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HUAppDelegate.h; sourceTree = "<group>"; };
BFAA53E818367A6700D5912D /* HUAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HUAppDelegate.m; sourceTree = "<group>"; };
BFAA53EB18367A6700D5912D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = "<group>"; };
BFAA53F018367A6700D5912D /* HUViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HUViewController.h; sourceTree = "<group>"; };
BFAA53F118367A6700D5912D /* HUViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HUViewController.m; sourceTree = "<group>"; };
BFAA53F318367A6700D5912D /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
BFAA53F918367A6700D5912D /* HelloUPTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HelloUPTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
BFAA53FA18367A6700D5912D /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
BFAA540218367A6700D5912D /* HelloUPTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HelloUPTests-Info.plist"; sourceTree = "<group>"; };
BFAA540418367A6700D5912D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
BFAA540618367A6700D5912D /* HelloUPTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HelloUPTests.m; sourceTree = "<group>"; };
BFAA541018367A7D00D5912D /* UPPlatformSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = UPPlatformSDK.framework; sourceTree = "<group>"; };
BFAA54131836815E00D5912D /* HUMealViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HUMealViewController.h; sourceTree = "<group>"; };
BFAA54141836815F00D5912D /* HUMealViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HUMealViewController.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
BFAA53D218367A6700D5912D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA53DB18367A6700D5912D /* CoreGraphics.framework in Frameworks */,
BFAA53DD18367A6700D5912D /* UIKit.framework in Frameworks */,
BFAA53D918367A6700D5912D /* Foundation.framework in Frameworks */,
BFAA541118367A7D00D5912D /* UPPlatformSDK.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BFAA53F618367A6700D5912D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA53FB18367A6700D5912D /* XCTest.framework in Frameworks */,
BFAA53FD18367A6700D5912D /* UIKit.framework in Frameworks */,
BFAA53FC18367A6700D5912D /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
BFAA53CC18367A6700D5912D = {
isa = PBXGroup;
children = (
BFAA53DE18367A6700D5912D /* HelloUP */,
BFAA540018367A6700D5912D /* HelloUPTests */,
BFAA53D718367A6700D5912D /* Frameworks */,
BFAA53D618367A6700D5912D /* Products */,
);
sourceTree = "<group>";
};
BFAA53D618367A6700D5912D /* Products */ = {
isa = PBXGroup;
children = (
BFAA53D518367A6700D5912D /* HelloUP.app */,
BFAA53F918367A6700D5912D /* HelloUPTests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
BFAA53D718367A6700D5912D /* Frameworks */ = {
isa = PBXGroup;
children = (
BFAA541018367A7D00D5912D /* UPPlatformSDK.framework */,
BFAA53D818367A6700D5912D /* Foundation.framework */,
BFAA53DA18367A6700D5912D /* CoreGraphics.framework */,
BFAA53DC18367A6700D5912D /* UIKit.framework */,
BFAA53FA18367A6700D5912D /* XCTest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
BFAA53DE18367A6700D5912D /* HelloUP */ = {
isa = PBXGroup;
children = (
BFAA53E718367A6700D5912D /* HUAppDelegate.h */,
BFAA53E818367A6700D5912D /* HUAppDelegate.m */,
BFAA53EA18367A6700D5912D /* Main_iPhone.storyboard */,
BFAA53F018367A6700D5912D /* HUViewController.h */,
BFAA53F118367A6700D5912D /* HUViewController.m */,
BFAA54131836815E00D5912D /* HUMealViewController.h */,
BFAA54141836815F00D5912D /* HUMealViewController.m */,
BFAA53F318367A6700D5912D /* Images.xcassets */,
BFAA53DF18367A6700D5912D /* Supporting Files */,
);
path = HelloUP;
sourceTree = "<group>";
};
BFAA53DF18367A6700D5912D /* Supporting Files */ = {
isa = PBXGroup;
children = (
BFAA53E018367A6700D5912D /* HelloUP-Info.plist */,
BFAA53E118367A6700D5912D /* InfoPlist.strings */,
BFAA53E418367A6700D5912D /* main.m */,
BFAA53E618367A6700D5912D /* HelloUP-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
BFAA540018367A6700D5912D /* HelloUPTests */ = {
isa = PBXGroup;
children = (
BFAA540618367A6700D5912D /* HelloUPTests.m */,
BFAA540118367A6700D5912D /* Supporting Files */,
);
path = HelloUPTests;
sourceTree = "<group>";
};
BFAA540118367A6700D5912D /* Supporting Files */ = {
isa = PBXGroup;
children = (
BFAA540218367A6700D5912D /* HelloUPTests-Info.plist */,
BFAA540318367A6700D5912D /* InfoPlist.strings */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
BFAA53D418367A6700D5912D /* HelloUP */ = {
isa = PBXNativeTarget;
buildConfigurationList = BFAA540A18367A6700D5912D /* Build configuration list for PBXNativeTarget "HelloUP" */;
buildPhases = (
BFAA53D118367A6700D5912D /* Sources */,
BFAA53D218367A6700D5912D /* Frameworks */,
BFAA53D318367A6700D5912D /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = HelloUP;
productName = HelloUP;
productReference = BFAA53D518367A6700D5912D /* HelloUP.app */;
productType = "com.apple.product-type.application";
};
BFAA53F818367A6700D5912D /* HelloUPTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = BFAA540D18367A6700D5912D /* Build configuration list for PBXNativeTarget "HelloUPTests" */;
buildPhases = (
BFAA53F518367A6700D5912D /* Sources */,
BFAA53F618367A6700D5912D /* Frameworks */,
BFAA53F718367A6700D5912D /* Resources */,
);
buildRules = (
);
dependencies = (
BFAA53FF18367A6700D5912D /* PBXTargetDependency */,
);
name = HelloUPTests;
productName = HelloUPTests;
productReference = BFAA53F918367A6700D5912D /* HelloUPTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
BFAA53CD18367A6700D5912D /* Project object */ = {
isa = PBXProject;
attributes = {
CLASSPREFIX = HU;
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = Jawbone;
TargetAttributes = {
BFAA53F818367A6700D5912D = {
TestTargetID = BFAA53D418367A6700D5912D;
};
};
};
buildConfigurationList = BFAA53D018367A6700D5912D /* Build configuration list for PBXProject "HelloUP" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = BFAA53CC18367A6700D5912D;
productRefGroup = BFAA53D618367A6700D5912D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
BFAA53D418367A6700D5912D /* HelloUP */,
BFAA53F818367A6700D5912D /* HelloUPTests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
BFAA53D318367A6700D5912D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA53F418367A6700D5912D /* Images.xcassets in Resources */,
BFAA53EC18367A6700D5912D /* Main_iPhone.storyboard in Resources */,
BFAA53E318367A6700D5912D /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BFAA53F718367A6700D5912D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA540518367A6700D5912D /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
BFAA53D118367A6700D5912D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA54161836815F00D5912D /* HUMealViewController.m in Sources */,
BFAA53F218367A6700D5912D /* HUViewController.m in Sources */,
BFAA53E518367A6700D5912D /* main.m in Sources */,
BFAA53E918367A6700D5912D /* HUAppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BFAA53F518367A6700D5912D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
BFAA540718367A6700D5912D /* HelloUPTests.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
BFAA53FF18367A6700D5912D /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = BFAA53D418367A6700D5912D /* HelloUP */;
targetProxy = BFAA53FE18367A6700D5912D /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
BFAA53E118367A6700D5912D /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
BFAA53E218367A6700D5912D /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
BFAA53EA18367A6700D5912D /* Main_iPhone.storyboard */ = {
isa = PBXVariantGroup;
children = (
BFAA53EB18367A6700D5912D /* Base */,
);
name = Main_iPhone.storyboard;
sourceTree = "<group>";
};
BFAA540318367A6700D5912D /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
BFAA540418367A6700D5912D /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
BFAA540818367A6700D5912D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
BFAA540918367A6700D5912D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
OTHER_LDFLAGS = "-ObjC";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
BFAA540B18367A6700D5912D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/**",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "HelloUP/HelloUP-Prefix.pch";
INFOPLIST_FILE = "HelloUP/HelloUP-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
BFAA540C18367A6700D5912D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/**",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "HelloUP/HelloUP-Prefix.pch";
INFOPLIST_FILE = "HelloUP/HelloUP-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
BFAA540E18367A6700D5912D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HelloUP.app/HelloUP";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "HelloUP/HelloUP-Prefix.pch";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
INFOPLIST_FILE = "HelloUPTests/HelloUPTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Debug;
};
BFAA540F18367A6700D5912D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/HelloUP.app/HelloUP";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "HelloUP/HelloUP-Prefix.pch";
INFOPLIST_FILE = "HelloUPTests/HelloUPTests-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
BFAA53D018367A6700D5912D /* Build configuration list for PBXProject "HelloUP" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BFAA540818367A6700D5912D /* Debug */,
BFAA540918367A6700D5912D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BFAA540A18367A6700D5912D /* Build configuration list for PBXNativeTarget "HelloUP" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BFAA540B18367A6700D5912D /* Debug */,
BFAA540C18367A6700D5912D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
BFAA540D18367A6700D5912D /* Build configuration list for PBXNativeTarget "HelloUPTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
BFAA540E18367A6700D5912D /* Debug */,
BFAA540F18367A6700D5912D /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = BFAA53CD18367A6700D5912D /* Project object */;
}
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:HelloUP.xcodeproj">
</FileRef>
</Workspace>
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="tFs-Wk-Ntw">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3747"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene sceneID="5ra-gK-WTS">
<objects>
<navigationController definesPresentationContext="YES" id="tFs-Wk-Ntw" sceneMemberID="viewController">
<navigationBar key="navigationBar" contentMode="scaleToFill" id="Fv6-4K-qvb">
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<connections>
<segue destination="vXZ-lx-hvc" kind="relationship" relationship="rootViewController" id="39h-mv-Lfa"/>
</connections>
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="jvd-yR-Ycw" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-578" y="14"/>
</scene>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="HUViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Kxg-gP-ex6"/>
<viewControllerLayoutGuide type="bottom" id="CrL-QN-nm7"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ZuL-nJ-ufB">
<rect key="frame" x="141" y="269" width="38" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Login">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="didTapLogin:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="X9q-vg-37Q"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="ZuL-nJ-ufB" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="L0K-Ya-ljD"/>
<constraint firstItem="ZuL-nJ-ufB" firstAttribute="centerY" secondItem="kh9-bI-dsS" secondAttribute="centerY" id="w0L-1H-js2"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="ngO-93-dE2"/>
<connections>
<segue destination="Hkp-Pk-pcv" kind="push" identifier="LoggedIn" id="z4k-YD-AVU"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="6" y="1"/>
</scene>
<!--Meal View Controller-->
<scene sceneID="uqO-9X-4mB">
<objects>
<viewController id="Hkp-Pk-pcv" customClass="HUMealViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="KoF-HA-TZe"/>
<viewControllerLayoutGuide type="bottom" id="LBY-tY-o1A"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="w8H-Db-h7m">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Updating meal..." lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fuO-Vu-zC5">
<rect key="frame" x="97" y="273" width="127" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="fuO-Vu-zC5" firstAttribute="centerX" secondItem="w8H-Db-h7m" secondAttribute="centerX" id="2kM-WT-lHM"/>
<constraint firstItem="fuO-Vu-zC5" firstAttribute="top" secondItem="KoF-HA-TZe" secondAttribute="bottom" constant="209" id="iOU-TS-4yW"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="zWL-QU-kZC"/>
<connections>
<outlet property="resultLabel" destination="fuO-Vu-zC5" id="ZG7-S3-BaJ"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="XcE-ln-jHQ" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="663" y="14"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>
+15
View File
@@ -0,0 +1,15 @@
//
// HUAppDelegate.h
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HUAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
+46
View File
@@ -0,0 +1,46 @@
//
// HUAppDelegate.m
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import "HUAppDelegate.h"
@implementation HUAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
+15
View File
@@ -0,0 +1,15 @@
//
// HUMealViewController.h
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HUMealViewController : UIViewController
@property (weak, nonatomic) IBOutlet UILabel *resultLabel;
@end
+87
View File
@@ -0,0 +1,87 @@
//
// HUMealViewController.m
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import "HUMealViewController.h"
#import <UPPlatformSDK/UPPlatformSDK.h>
@interface HUMealViewController ()
@end
@implementation HUMealViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
[self createMeal];
}
- (void)viewDidAppear:(BOOL)animated
{
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (void)createMeal
{
// Meal events should be created with one or more meal items. To create a new meal event, we start by specifying nutritional information for a single meal item.
UPMealNutritionInfo *info = [[UPMealNutritionInfo alloc] init];
info.calories = @130.0;
info.sugar = @30.0;
info.carbohydrates = @10.0;
info.calcium = @80.0;
// Afterwards, we create a new meal item and set its nutritional information.
UPMealItem *item = [UPMealItem mealItemWithName:@"Granola Bar"
description:@"A fancy granola bar."
amount:@1
measurementUnits:@"bar"
servingType:UPMealItemServingTypePlate
foodType:UPMealItemFoodTypeBrand
nutritionInfo:info];
// Then, we create a new meal event that will hold the meal item we had just created.
UPMeal *meal = [UPMeal mealWithTitle:@"Delicious Granola Bar"
note:@"It was tasty"
items:@[item]];
meal.photoURL = @"http://studylogic.net/wp-content/uploads/2013/01/burger.jpg";
[UPMealAPI postMeal:meal completion:^(UPMeal *meal, UPURLResponse *response, NSError *error) {
// Retrieve the meal we just created.
[self getMealDetailsForMeal:meal];
}];
}
- (void)getMealDetailsForMeal:(UPMeal *)meal
{
[UPMealAPI getMealDetails:meal completion:^(UPMeal *meal, UPURLResponse *response, NSError *error) {
NSLog(@"%@", meal);
self.resultLabel.text = meal.title;
[self.resultLabel sizeToFit];
}];
}
@end
+15
View File
@@ -0,0 +1,15 @@
//
// HUViewController.h
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HUViewController : UIViewController
- (IBAction)didTapLogin:(UIButton *)sender;
@end
+65
View File
@@ -0,0 +1,65 @@
//
// HUViewController.m
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import "HUViewController.h"
#import <UPPlatformSDK/UPPlatformSDK.h>
// OAuth keys.
NSString *const kAPIExplorerID = @"3ZYR1YjGd3Q";
NSString *const kAPIExplorerSecret = @"4dd5b10b3a3a16dbf3082c86d5faff09e11a682b";
@interface HUViewController ()
@end
@implementation HUViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Give us a detailed network activity overview.
[UPPlatform sharedPlatform].enableNetworkLogging = YES;
// Check if we have an outstanding session.
[[UPPlatform sharedPlatform] validateSessionWithCompletion:^(UPSession *session, NSError *error) {
if (session != nil) {
[self performSegueWithIdentifier:@"LoggedIn" sender:nil];
}
}];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
}
- (IBAction)didTapLogin:(UIButton *)sender {
sender.enabled = NO;
// Present login screen in a UIWebView.
[[UPPlatform sharedPlatform] startSessionWithClientID:kAPIExplorerID
clientSecret:kAPIExplorerSecret
authScope:UPPlatformAuthScopeAll
completion:^(UPSession *session, NSError *error) {
sender.enabled = YES;
if (session != nil) {
[self performSegueWithIdentifier:@"LoggedIn" sender:nil];
} else {
[[[UIAlertView alloc] initWithTitle:@"Error"
message:error.localizedDescription
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil] show];
}
}];
}
@end
+49
View File
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>Jawbone.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main_iPhone</string>
<key>UIMainStoryboardFile~ipad</key>
<string>Main_iPhone</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
+16
View File
@@ -0,0 +1,16 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
@@ -0,0 +1,53 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -0,0 +1,51 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */
+18
View File
@@ -0,0 +1,18 @@
//
// main.m
// HelloUP
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HUAppDelegate.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([HUAppDelegate class]));
}
}
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>Jawbone.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
+34
View File
@@ -0,0 +1,34 @@
//
// HelloUPTests.m
// HelloUPTests
//
// Created by Shadow on 11/15/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface HelloUPTests : XCTestCase
@end
@implementation HelloUPTests
- (void)setUp
{
[super setUp];
// Put setup code here. This method is called before the invocation of each test method in the class.
}
- (void)tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
[super tearDown];
}
- (void)testExample
{
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
}
@end
@@ -0,0 +1,2 @@
/* Localized versions of Info.plist keys */
+1
View File
@@ -0,0 +1 @@
Versions/Current/Headers
+1
View File
@@ -0,0 +1 @@
Versions/Current/PrivateHeaders
+1
View File
@@ -0,0 +1 @@
Versions/Current/Resources
+1
View File
@@ -0,0 +1 @@
Versions/Current/UPPlatformSDK
@@ -0,0 +1,21 @@
//
// UP.h
// PlatformSDK
//
// Created by Andy Roth on 4/7/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import "UPPlatform.h"
#import "UPSession.h"
#import "UPURLRequest.h"
#import "UPURLResponse.h"
#import "UPGenericEventAPI.h"
#import "UPBodyEventAPI.h"
#import "UPCardiacEventAPI.h"
#import "UPMoodAPI.h"
#import "UPUserAPI.h"
#import "UPMoveAPI.h"
#import "UPWorkoutAPI.h"
#import "UPSleepAPI.h"
#import "UPMealAPI.h"
@@ -0,0 +1,29 @@
//
// UPAuthViewController.h
// PlatformSDK
//
// Created by Andy Roth on 4/6/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#if !(!TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR)
#import <UIKit/UIKit.h>
#import "UPPlatform.h"
@class UPAuthViewController;
@protocol UPAuthViewControllerDelegate <NSObject>
- (void)authViewController:(UPAuthViewController *)viewController didCompleteWithAuthCode:(NSString *)code;
- (void)authViewController:(UPAuthViewController *)viewController didFailWithError:(NSError *)error;
- (void)authViewControllerDidCancel:(UPAuthViewController *)viewController;
@end
@interface UPAuthViewController : UIViewController
- (id)initWithURL:(NSURL *)url delegate:(id<UPAuthViewControllerDelegate>)delegate;
- (void)show;
@end
#endif
@@ -0,0 +1,63 @@
//
// UPBaseEventAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/30/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPURLRequest.h"
@class UPURLResponse, UPBaseEvent, UPSnapshot;
typedef void(^UPBaseEventAPICompletion)(id result, UPURLResponse *response, NSError *error);
typedef void(^UPBaseEventAPIArrayCompletion)(NSArray *results, UPURLResponse *response, NSError *error);
typedef void(^UPBaseEventAPIImageCompletion)(UIImage *image);
typedef void(^UPBaseEventAPISnapshotCompletion)(UPSnapshot *snapshot, UPURLResponse *response, NSError *error);
@interface UPBaseEventAPI : NSObject
+ (void)getEventsOfType:(NSString *)type destinationClass:(Class)destClass completion:(UPBaseEventAPICompletion)completion;
+ (void)postEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion;
+ (void)updateEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion;
+ (void)refreshEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion;
+ (void)deleteEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion;
@end
@protocol UPBaseObject <NSObject>
- (void)decodeFromDictionary:(NSDictionary *)dictionary;
- (NSDictionary *)encodeToDictionary;
@end
@interface UPBaseEvent : NSObject <UPBaseObject>
@property (nonatomic, strong) NSString *xid;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSDate *timeCreated;
@property (nonatomic, strong) NSDate *timeUpdated;
@property (nonatomic, strong) NSTimeZone *timeZone;
- (NSString *)apiType;
@end
@interface UPSnapshot : NSObject
@property (nonatomic, strong) NSArray *ticks;
+ (UPSnapshot *)snapshotWithArray:(NSArray *)array;
@end
@interface UPSnapshotTick : NSObject
@property (nonatomic, strong) NSDate *timestamp;
@property (nonatomic, strong) NSNumber *value;
@end
@@ -0,0 +1,98 @@
//
// UPBodyEventAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/30/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
#import "UPGenericEventAPI.h"
@class UPBodyEvent, UPURLResponse;
typedef void(^UPBodyEventAPICompletion)(UPBodyEvent *event, UPURLResponse *response, NSError *error);
@interface UPBodyEventAPI : NSObject
/**
* Get body composition metrics record events for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)getBodyEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Create a new user event to record body composition metrics for the currently authenticated user.
* @param event New body event.
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)postBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion;
/**
* Get a single body composition metric event for the currently authenticated user.
* @param event Existing body event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)refreshBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion;
/**
* Delete a single Weight metric event for the currently authenticated user.
* @param event Existing body event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)deleteBodyEvent:(UPBodyEvent *)event completion:(UPBaseEventAPICompletion)completion;
@end
@interface UPBodyEvent : UPGenericEvent
/**
* Create a new body event with supplied parameters for the currently authenticated user.
*
* @param title Title of the new event.
* @param weight Weight in kilograms.
* @param bodyFat Body fat percentage.
* @param leanMass Lean mass percentage.
* @param bmi Body Mass Index.
* @param note Notes associated with the event.
* @param image Image to include in the event.
*/
+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note image:(UIImage *)image;
/**
* Create a new body event with supplied parameters for the currently authenticated user.
*
* @param title Title of the new event.
* @param weight Weight in kilograms.
* @param bodyFat Body fat percentage.
* @param leanMass Lean mass percentage.
* @param bmi Body Mass Index.
* @param note Notes associated with the event.
* @param image URL of the image to include in the event.
*/
+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note imageURL:(NSString *)imageURL;
/**
* Weight in kilograms.
*/
@property (nonatomic, strong) NSNumber *weight;
/**
* Body fat percentage.
*/
@property (nonatomic, strong) NSNumber *bodyFat;
/**
* Lean mass percentage.
*/
@property (nonatomic, strong) NSNumber *leanMass;
/**
* Body Mass Index.
*/
@property (nonatomic, strong) NSNumber *bmi;
@end
@@ -0,0 +1,92 @@
//
// UPCardiacEventAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/30/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
#import "UPGenericEventAPI.h"
@class UPCardiacEvent, UPURLResponse;
typedef void(^UPCardiacEventAPICompletion)(UPCardiacEvent *event, UPURLResponse *response, NSError *error);
@interface UPCardiacEventAPI : NSObject
/**
* Request recent cardiac events for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)getCardiacEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Post a cardiac event for the currently authenticated user.
*
* @param event A new cardiac event.
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)postCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion;
/**
* Refresh (update) an existing cardiac event for the currently authenticated user.
*
* @param event An existing cardiac event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)refreshCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion;
/**
* Delete a cardiac event for the currently authenticated user.
*
* @param event An existing cardiac event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)deleteCardiacEvent:(UPCardiacEvent *)event completion:(UPBaseEventAPICompletion)completion;
@end
@interface UPCardiacEvent : UPGenericEvent
/**
* Create a new cardiac event with supplied parameters for the currently authenticated user.
*
* @param title Title for the new event.
* @param heartRate Heart rate.
* @param systolicPressure Systolic pressure.
* @param diastolicPressure Diastolic pressure.
* @param image Associated image.
*/
+ (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note image:(UIImage *)image;
/**
* Create a new cardiac event with supplied parameters for the currently authenticated user.
*
* @param title Title for the new event.
* @param heartRate Heart rate.
* @param systolicPressure Systolic pressure.
* @param diastolicPressure Diastolic pressure.
* @param imageURL The URL for the associated image.
*/
+ (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note imageURL:(NSString *)imageURL;
/**
* Heart rate for the currently authenticated user.
*/
@property (nonatomic, strong) NSNumber *heartRate;
/**
* Systolic pressure for the currently authenticated user.
*/
@property (nonatomic, strong) NSNumber *systolicPressure;
/**
* Diastolic pressure for the currently authenticated user.
*/
@property (nonatomic, strong) NSNumber *diastolicPressure;
@end
@@ -0,0 +1,98 @@
//
// UPGenericEventAPI.h
// PlatformSDK
//
// Created by Andy Roth on 4/8/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPGenericEvent, UPURLResponse;
typedef void(^UPGenericEventAPICompletion)(UPGenericEvent *event, UPURLResponse *response, NSError *error);
@interface UPGenericEventAPI : NSObject
/**
* Get generic events for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)getGenericEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Create a new generic event for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)postGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion;
/**
* Get a generic event for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)refreshGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion;
/**
* Delete a generic event for the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)deleteGenericEvent:(UPGenericEvent *)event completion:(UPBaseEventAPICompletion)completion;
@end
@interface UPGenericEvent : UPBaseEvent
/**
* Create a new generic event with supplied parameters for the currently authenticated user.
*
* @param title Title of the new event.
* @param verb Verb to indicate user action (used in the feed story).
* @param attributes Set of attributes associated with the event (used in the feed story).
* @param note Description of the event.
* @param image Image to include in the event.
*/
+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note image:(UIImage *)image;
/**
* Create a new generic event with supplied parameters for the currently authenticated user.
*
* @param title Title of the new event.
* @param verb Verb to indicate user action (used in the feed story).
* @param attributes Set of attributes associated with the event (used in the feed story).
* @param note Description of the event.
* @param imageURL URI of the image to include in the event.
*/
+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note imageURL:(NSString *)imageURL;
/**
* Verb to indicate user action (used in the feed story).
*/
@property (nonatomic, strong) NSString *verb;
/**
* Set of attributes associated with the event (used in the feed story).
*/
@property (nonatomic, strong) NSDictionary *attributes;
/**
* Description of the event.
*/
@property (nonatomic, strong) NSString *note;
/**
* URI of the event's image.
*/
@property (nonatomic, strong) NSString *imageURL;
/**
* Event image.
*/
@property (nonatomic, strong) UIImage *image;
@end
@@ -0,0 +1,171 @@
//
// UPMealAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/31/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPMeal, UPURLResponse, UPMealNutritionInfo, UPMealItem;
typedef void(^UPMealAPICompletion)(UPMeal *meal, UPURLResponse *response, NSError *error);
@interface UPMealAPI : NSObject
/**
* Request most recent meal events for the currently authenticated user. The request is made asynchronously.
*
* @param limit Maximum number of meals to be retrieved.
* @param completion Block to be executed upon completion. The block is passed a result array.
*/
+ (void)getMealsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Request meal events between two points in time for the currently authenticated user. The request is made
* asynchronously.
*
* @param startDate
* @param endDate
* @param completion Block to be executed upon completion. The block is passed a result array.
*/
+ (void)getMealsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Post a meal event to the feed of the currently authenticated user.
*
* @param meal New meal event.
* @param completion Block to be executed upon completion. The block is passed a result array.
*/
+ (void)postMeal:(UPMeal *)meal completion:(UPMealAPICompletion)completion;
/**
* Request details about a meal event on the currently authenticated user's feed.
*
* @param meal New meal event.
* @param completion Block to be executed upon completion. The block is passed a result array.
*/
+ (void)getMealDetails:(UPMeal *)meal completion:(UPMealAPICompletion)completion;
/**
* Delete a meal event that's currently on the user's timeline.
*
* @param meal New meal event.
* @param completion Block to be executed upon completion. The block is passed a result array.
*/
+ (void)deleteMeal:(UPMeal *)meal completion:(UPBaseEventAPICompletion)completion;
@end
@interface UPMeal : UPBaseEvent
/**
* Create a new meal event that can be posted to the user's feed.
*
* @param title New meal event.
* @param note The note for the meal event.
* @param items The items that constitute the new meal.
*/
+ (UPMeal *)mealWithTitle:(NSString *)title note:(NSString *)note items:(NSArray *)items;
/**
* Create a new meal event with specifed location that can be posted to the user's feed.
*
* @param title The title of the new meal event.
* @param note The note for the meal event.
* @param placeName The name of the location.
* @param placeLatitude The latitude coordinate.
* @param placeLongitude The longitude coordinate.
* @param placeAccuracy The accuracy of the coordinates.
* @param items The items that constitute the new meal.
*/
+ (UPMeal *)mealWithTitle:(NSString *)title note:(NSString *)note placeName:(NSString *)placeName placeLatitude:(NSNumber *)placeLatitude placeLongitude:(NSNumber *)placeLongitude placeAccuracy:(NSNumber *)placeAccuracy items:(NSArray *)items;
@property (nonatomic, strong) UPMealNutritionInfo *overallNutritionInfo;
@property (nonatomic, strong) NSArray *items;
@property (nonatomic, strong) NSString *placeName;
@property (nonatomic, strong) NSNumber *placeLatitude;
@property (nonatomic, strong) NSNumber *placeLongitude;
@property (nonatomic, strong) NSNumber *placeAccuracy;
@property (nonatomic, strong) NSNumber *foodCount;
/// TODO: What is this drinkCount?
@property (nonatomic, strong) NSNumber *drinkCount;
@property (nonatomic, strong) NSString *note;
/// The photo for the meal.
@property (nonatomic, strong) UIImage *photo;
/// The URL for the photo of the meal.
@property (nonatomic, strong) NSString *photoURL;
@end
@interface UPMealNutritionInfo : NSObject <UPBaseObject>
@property (nonatomic, strong) NSNumber *calcium;
@property (nonatomic, strong) NSNumber *calories;
@property (nonatomic, strong) NSNumber *carbohydrates;
@property (nonatomic, strong) NSNumber *cholesterol;
@property (nonatomic, strong) NSNumber *fat;
@property (nonatomic, strong) NSNumber *fiber;
@property (nonatomic, strong) NSNumber *iron;
@property (nonatomic, strong) NSNumber *monounsaturatedFat;
@property (nonatomic, strong) NSNumber *polyunsaturatedFat;
@property (nonatomic, strong) NSNumber *potassium;
@property (nonatomic, strong) NSNumber *protein;
@property (nonatomic, strong) NSNumber *saturatedFat;
@property (nonatomic, strong) NSNumber *sodium;
@property (nonatomic, strong) NSNumber *sugar;
@property (nonatomic, strong) NSNumber *unsaturatedFat;
@property (nonatomic, strong) NSNumber *vitaminA;
@property (nonatomic, strong) NSNumber *vitaminC;
@end
typedef NS_ENUM(NSUInteger, UPMealItemServingType)
{
UPMealItemServingTypePlate = 1,
UPMealItemServingTypeCup = 2,
UPMealItemServingTypeBowl = 3,
UPMealItemServingTypeScale = 4,
UPMealItemServingTypeGlass = 5
};
typedef NS_ENUM(NSUInteger, UPMealItemFoodType)
{
UPMealItemFoodTypeGeneric = 1,
UPMealItemFoodTypeRestaurant = 2,
UPMealItemFoodTypeBrand = 3,
UPMealItemFoodTypePersonal = 4
};
@interface UPMealItem : NSObject <UPBaseObject>
/**
* Create a new meal item that can be used inside a meal event.
*
* @param name The name of the new meal item.
* @param description The description of the new meal item.
* @param amount The amount or quantity of the new meal item.
* @param measurementUnits The unit of measurement for the new meal item.
* @param servingType The serving type of the new meal item. TODO: What is serving type?
* @param foodType The food type of the new meal item.
* @param nutritionInfo The nutrition information for the new item.
*/
+ (UPMealItem *)mealItemWithName:(NSString *)name description:(NSString *)description amount:(NSNumber *)amount measurementUnits:(NSString *)measurementUnits servingType:(UPMealItemServingType)servingType foodType:(UPMealItemFoodType)foodType nutritionInfo:(UPMealNutritionInfo *)nutritionInfo;
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSString *itemDescription;
@property (nonatomic, strong) NSNumber *amount;
@property (nonatomic, strong) NSString *measurementUnits;
@property (nonatomic, assign) UPMealItemServingType servingType;
@property (nonatomic, assign) UPMealItemFoodType foodType;
@property (nonatomic, strong) NSString *category;
@property (nonatomic, strong) UPMealNutritionInfo *nutritionInfo;
@end
@@ -0,0 +1,77 @@
//
// UPMoodAPI.h
// PlatformSDK
//
// Created by Andy Roth on 4/9/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPMood, UPURLResponse;
typedef void(^UPMoodAPICompletion)(UPMood *mood, UPURLResponse *response, NSError *error);
@interface UPMoodAPI : NSObject
/**
* Request the current mood of the currently authenticated user.
*
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)getCurrentMoodWithCompletion:(UPMoodAPICompletion)completion;
/**
* Post a mood update to the currently authenticated user's feed.
*
* @param mood The new mood event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)postMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion;
/**
* Delete a mood event.
*
* @param mood The mood event to be deleted. The currently authenticated user must own the mood event.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)deleteMood:(UPMood *)mood completion:(UPBaseEventAPICompletion)completion;
/**
* Update an existing mood event.
*
* @param mood The mood event to be updated.
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (void)refreshMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion;
@end
typedef NS_ENUM(NSUInteger, UPMoodType)
{
UPMoodTypeAmazing,
UPMoodTypePumpedUp,
UPMoodTypeEnergized,
UPMoodTypeGood,
UPMoodTypeMeh,
UPMoodTypeDragging,
UPMoodTypeExhausted,
UPMoodTypeTotallyDone,
};
@interface UPMood : UPBaseEvent
/**
* Create a new mood event.
*
* @param type The mood type of new mood event. TODO: What are the different types?
* @param completion Block to be executed upon completion. This block is passed the result or any error information.
*/
+ (UPMood *)moodWithType:(UPMoodType)type title:(NSString *)title;
/// The type of the mood event. TODO: What are the different types?
@property (nonatomic, assign) UPMoodType type;
@end
@@ -0,0 +1,94 @@
//
// UPMoveAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/30/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPMove, UPURLResponse;
typedef void(^UPMoveAPICompletion)(UPMove *move, UPURLResponse *response, NSError *error);
@interface UPMoveAPI : NSObject
/**
* Request recent move events for the currently authenticated user.
*
* @param limit The maximum number of events to return.
* @param completion Block to be executed upon completion. This block is passed the results or any error information.
*/
+ (void)getMovesWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Request move events between two points in time for the currently authenticated user.
*
* @param startDate The earliest date to fetch move events from.
* @param endDate The date up to which to fetch move events to.
* @param completion Block to be executed upon completion. The block is passed the results or any error information.
*/
+ (void)getMovesFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Request a single move event from the user's history.
*
* @param move The move event to request. The event must be visible to the user.
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)refreshMove:(UPMove *)move completion:(UPMoveAPICompletion)completion;
/**
* Request a graph image for a sleep event.
*
* @param move The move event to request the graph image for. The event must be visible to the user.
* @param completion Block to be executed upon completion. The block is passed the graph image.
*/
+ (void)getMoveGraphImage:(UPMove *)move completion:(UPBaseEventAPIImageCompletion)completion;
/**
* TODO: What is a snapshot?
*
* @param move The move event to request the snapshot for.
* @param completion Block to be executed upon completion. The block is passed the snapshot of any error information.
*/
+ (void)getMoveSnapshot:(UPMove *)move completion:(UPBaseEventAPISnapshotCompletion)completion;
@end
@interface UPMove : UPBaseEvent
/// The duration of time for which the user was active.
@property (nonatomic, strong) NSNumber *activeTime;
/// The duration of time for which the user was inactive.
@property (nonatomic, strong) NSNumber *inactiveTime;
/// The number of resting calories burned. TODO: What does this mean?
@property (nonatomic, strong) NSNumber *restingCalories;
/// The number of active calories burned. TODO: What does this mean?
@property (nonatomic, strong) NSNumber *activeCalories;
/// The number of total calories burned.
@property (nonatomic, strong) NSNumber *totalCalories;
/// The distance traveled during the move event.
@property (nonatomic, strong) NSNumber *distance;
/// The number of steps taken during the event.
@property (nonatomic, strong) NSNumber *steps;
/// The longest time that the user spent idle during the move event.
@property (nonatomic, strong) NSNumber *longestIdle;
/// The longest period of time that the user spent active during the move event.
@property (nonatomic, strong) NSNumber *longestActive;
/// The URL for the graph image for the move event.
@property (nonatomic, strong) NSString *graphImageURL;
@end
@@ -0,0 +1,65 @@
//
// UPManager.h
// PlatformSDK
//
// Created by Andy Roth on 4/6/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
extern NSString * const kUPPlatformDefaultRedirectURI;
@class UPSession, UPURLRequest, UPURLResponse;
typedef NS_OPTIONS(NSUInteger, UPPlatformAuthScope)
{
UPPlatformAuthScopeBasicRead = 1 << 0,
UPPlatformAuthScopeExtendedRead = 1 << 1,
UPPlatformAuthScopeLocationRead = 1 << 2,
UPPlatformAuthScopeFriendsRead = 1 << 3,
UPPlatformAuthScopeMoodRead = 1 << 4,
UPPlatformAuthScopeMoodWrite = 1 << 5,
UPPlatformAuthScopeMoveRead = 1 << 6,
UPPlatformAuthScopeMoveWrite = 1 << 7,
UPPlatformAuthScopeSleepRead = 1 << 8,
UPPlatformAuthScopeSleepWrite = 1 << 9,
UPPlatformAuthScopeMealRead = 1 << 10,
UPPlatformAuthScopeMealWrite = 1 << 11,
UPPlatformAuthScopeWeightRead = 1 << 12,
UPPlatformAuthScopeWeightWrite = 1 << 13,
UPPlatformAuthScopeCardiacRead = 1 << 14,
UPPlatformAuthScopeCardiacWrite = 1 << 15,
UPPlatformAuthScopeGenericRead = 1 << 16,
UPPlatformAuthScopeGenericWrite = 1 << 17,
UPPlatformAuthScopeAll = 1 << 18
};
typedef void(^UPPlatformSessionCompletion)(UPSession *session, NSError *error);
typedef void(^UPPlatformRequestCompletion)(UPURLRequest *request, UPURLResponse *response, NSError *error);
@interface UPPlatform : NSObject
@property (nonatomic, readonly) UPSession *currentSession;
@property (nonatomic, readonly) NSString *redirectURI;
@property (nonatomic, assign) BOOL enableNetworkLogging;
+ (UPPlatform *)sharedPlatform;
+ (NSString *)basePlatformURL;
- (void)validateSessionWithCompletion:(UPPlatformSessionCompletion)completion;
#if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret webView:(WebView *)webView completion:(UPPlatformSessionCompletion)completion;
- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret webView:(WebView *)webView authScope:(UPPlatformAuthScope)authScope completion:(UPPlatformSessionCompletion)completion;
#else
- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret completion:(UPPlatformSessionCompletion)completion;
- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret authScope:(UPPlatformAuthScope)authScope completion:(UPPlatformSessionCompletion)completion;
- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret authScope:(UPPlatformAuthScope)authScope redirectURI:(NSString *)redirectURI completion:(UPPlatformSessionCompletion)completion;
#endif
- (void)endCurrentSession;
- (void)sendRequest:(UPURLRequest *)request completion:(UPPlatformRequestCompletion)completion;
@end
@@ -0,0 +1,26 @@
//
// UPPlatformSDK.h
// UPPlatformSDK
//
// Created by Shadow on 11/13/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPPlatform.h"
#import "UPSession.h"
#import "UPURLRequest.h"
#import "UPURLResponse.h"
#import "UPGenericEventAPI.h"
#import "UPBodyEventAPI.h"
#import "UPCardiacEventAPI.h"
#import "UPMoodAPI.h"
#import "UPUserAPI.h"
#import "UPMoveAPI.h"
#import "UPWorkoutAPI.h"
#import "UPSleepAPI.h"
#import "UPMealAPI.h"
@interface UPPlatformSDK : NSObject
@end
@@ -0,0 +1,20 @@
//
// UPSession.h
// PlatformSDK
//
// Created by Andy Roth on 4/6/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
@class UPUser;
@interface UPSession : NSObject
- (id)initWithToken:(NSString *)token;
@property (nonatomic, readonly) NSString *authenticationToken;
@property (nonatomic, strong) UPUser *currentUser;
@end
@@ -0,0 +1,120 @@
//
// UPSleepAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/31/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPSleep, UPURLResponse;
typedef void(^UPSleepAPICompletion)(UPSleep *sleep, UPURLResponse *response, NSError *error);
@interface UPSleepAPI : NSObject
/**
* Request recent sleep sleep for the currently authenticated user.
*
* @param limit The maximum number of events that will be returned.
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)getSleepsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Request sleep events between two points in time for the currently authenticated user.
*
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)getSleepsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Post a new sleep event to the user's timeline.
*
* @param sleep A new sleep event.
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)postSleep:(UPSleep *)sleep completion:(UPSleepAPICompletion)completion;
/**
* Request sleep recent sleep events for the currently authenticated user.
*
* @param limit
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)refreshSleep:(UPSleep *)sleep completion:(UPSleepAPICompletion)completion;
/**
* Delete a sleep event. The event must belong to the currently authenticated user.
*
* @param sleep The sleep event to be deleted.
* @param completion Block to be executed upon completion. The block is passed a completion object.
*/
+ (void)deleteSleep:(UPSleep *)sleep completion:(UPBaseEventAPICompletion)completion;
/**
* Request an image containing a graph for the sleep event. The event must be visible to the currently authenticated user.
*
* @param sleep The sleep event to request.
* @param completion Block to be executed upon completion. The block is passed the result.
*/
+ (void)getSleepGraphImage:(UPSleep *)sleep completion:(UPBaseEventAPIImageCompletion)completion;
/**
* TODO: What is a sleep snapshot?
*
* @param sleep The sleep event to request the snapshot for.
* @param completion Block to be executed upon completion. The block is passed the result.
*/
+ (void)getSleepSnapshot:(UPSleep *)sleep completion:(UPBaseEventAPISnapshotCompletion)completion;
@end
@interface UPSleep : UPBaseEvent
/**
* Create a new sleep event.
*
* @param startTime The time the user went to sleep.
* @param endTime The time the user woke up.
* @return Returns a new sleep event.
*/
+ (UPSleep *)sleepWithStartTime:(NSDate *)startTime endTime:(NSDate *)endTime;
/// TODO: What is the difference between this and awakeTime?
@property (nonatomic, strong) NSDate *timeCompleted;
/// The time when the user went to sleep.
@property (nonatomic, strong) NSDate *asleepTime;
/// TODO: What is the difference between this and timeCompleted?
@property (nonatomic, strong) NSDate *awakeTime;
/// The total amount of time the user was awake (e.g., woken up by a car alarm) during the times they went to sleep and woke up.
@property (nonatomic, strong) NSNumber *totalTimeAwake;
/// The total time the user spent in light sleep.
@property (nonatomic, strong) NSNumber *totalTimeLight;
/// The total time the user spent in deep sleep.
@property (nonatomic, strong) NSNumber *totalTimeDeep;
/// The total time the user was asleep.
@property (nonatomic, strong) NSNumber *totalTime;
/// The quality of the sleep. TODO: What is the min and max?
@property (nonatomic, strong) NSNumber *quality;
/// How many times did the user wake up during their sleep?
@property (nonatomic, strong) NSNumber *awakenings;
/// What time was the smart alarm scheduled to go off?
@property (nonatomic, strong) NSDate *smartAlarmFireTime;
/// The URL to the graph of the sleep event.
@property (nonatomic, strong) NSString *graphImageURL;
@end
@@ -0,0 +1,18 @@
//
// UPURLRequest.h
// PlatformSDK
//
// Created by Andy Roth on 4/6/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UPURLRequest : NSMutableURLRequest
+ (UPURLRequest *)getRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params;
+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params;
+ (UPURLRequest *)deleteRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params;
+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params image:(UIImage *)image;
@end
@@ -0,0 +1,20 @@
//
// UPURLResponse.h
// PlatformSDK
//
// Created by Andy Roth on 4/6/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface UPURLResponse : NSObject
- (id)initWithCode:(NSInteger)code data:(NSDictionary *)data metadata:(NSDictionary *)metadata nextPageURL:(NSString *)nextPageURL;
@property (nonatomic, readonly) NSInteger code;
@property (nonatomic, readonly) NSDictionary *data;
@property (nonatomic, readonly) NSDictionary *metadata;
@property (nonatomic, readonly) NSString *nextPageURL;
@end
@@ -0,0 +1,81 @@
//
// UPUserAPI.h
// PlatformSDK
//
// Created by Andy Roth on 4/9/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
@class UPUser, UPURLResponse;
typedef void(^UPUserAPICompletion)(UPUser *user, UPURLResponse *response, NSError *error);
typedef void(^UPUserTrendsAPICompletion)(NSArray *trends, UPURLResponse *response, NSError *error);
typedef NS_ENUM(NSUInteger, UPUserTrendsRangeType)
{
UPUserTrendsRangeTypeDays,
UPUserTrendsRangeTypeWeeks
};
typedef NS_ENUM(NSUInteger, UPUserTrendsBucketSize)
{
UPUserTrendsBucketSizeDays,
UPUserTrendsBucketSizeWeeks,
UPUserTrendsBucketSizeMonths,
UPUserTrendsBucketSizeYears
};
typedef NS_ENUM(NSUInteger, UPUserGender)
{
UPUserGenderMale,
UPUserGenderFemale
};
@interface UPUserAPI : NSObject
+ (void)getCurrentUserWithCompletion:(UPUserAPICompletion)completion;
+ (void)getFriendsWithCompletion:(UPBaseEventAPIArrayCompletion)completion;
+ (void)getTrendsWithEndDate:(NSDate *)endDate rangeType:(UPUserTrendsRangeType)rangeType rangeDuration:(NSUInteger)rangeDuration bucketSize:(UPUserTrendsBucketSize)bucketSize completion:(UPUserTrendsAPICompletion)completion;
@end
@interface UPUser : NSObject <UPBaseObject>
@property (nonatomic, strong) NSString *xid;
@property (nonatomic, strong) NSString *firstName;
@property (nonatomic, strong) NSString *lastName;
@property (nonatomic, strong) NSString *imageURL;
@end
@interface UPTrend : NSObject <UPBaseObject>
@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSNumber *weight;
@property (nonatomic, strong) NSNumber *height;
@property (nonatomic, assign) UPUserGender gender;
@property (nonatomic, strong) NSNumber *age;
@property (nonatomic, strong) NSNumber *moveDistance;
@property (nonatomic, strong) NSNumber *moveSteps;
@property (nonatomic, strong) NSNumber *moveWorkoutTime;
@property (nonatomic, strong) NSNumber *moveActiveTime;
@property (nonatomic, strong) NSNumber *moveCalories;
@property (nonatomic, strong) NSNumber *sleepLight;
@property (nonatomic, strong) NSNumber *sleepDeep;
@property (nonatomic, strong) NSNumber *sleepAwake;
@property (nonatomic, strong) NSNumber *sleepTimeAsleep;
@property (nonatomic, strong) NSNumber *sleepTimeAwake;
@property (nonatomic, strong) NSNumber *eatProtein;
@property (nonatomic, strong) NSNumber *eatCalcium;
@property (nonatomic, strong) NSNumber *eatSaturatedFat;
@property (nonatomic, strong) NSNumber *eatCalories;
@property (nonatomic, strong) NSNumber *eatSodium;
@property (nonatomic, strong) NSNumber *eatSugar;
@property (nonatomic, strong) NSNumber *eatCarbs;
@property (nonatomic, strong) NSNumber *eatFiber;
@end
@@ -0,0 +1,141 @@
//
// UPWorkoutAPI.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/31/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UPBaseEventAPI.h"
#import "UPMoveAPI.h"
@class UPWorkout, UPURLResponse;
typedef void(^UPWorkoutAPICompletion)(UPWorkout *workout, UPURLResponse *response, NSError *error);
@interface UPWorkoutAPI : NSObject
/**
* Request recent workout events for the currently authenticated user.
*
* @param limit The maximum number of workout events to be returned.
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)getWorkoutsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Request workout events between two points in time for the currently authenticated user.
*
* @param startDate Request workout events after this date. The date must be in the past.
* @param endDate Request workout events before this date. The date must be in the past.
* @param completion Block to be executed upon completion. The block is passed the results.
*/
+ (void)getWorkoutsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion;
/**
* Post a new workout event to the feed of the currently authenticated user.
*
* @param workout A new workout event to be added to the feed.
* @param completion Block to be executed upon request completion.
*/
+ (void)postWorkout:(UPWorkout *)workout completion:(UPWorkoutAPICompletion)completion;
/**
* Request an existing workout event. The event must be visible to the currently authenticated user.
*
* @param workout An existing workout event.
* @param completion Block to be executed upon completion. The block is passed the result.
*/
+ (void)refreshWorkout:(UPWorkout *)workout completion:(UPWorkoutAPICompletion)completion;
/**
* Delete an existing workout event. The event must belong to the currently authenticated user.
*
* @param workout The existing workout event to be deleted.
* @param completion Block to be executed upon completion.
*/
+ (void)deleteWorkout:(UPWorkout *)workout completion:(UPBaseEventAPICompletion)completion;
/**
* Request the graph image for the workout event.
*
* @param workout The workout for which to request the graph.
* @param completion Block to be executed upon completion. The block is passed the result image.
*/
+ (void)getWorkoutGraphImage:(UPWorkout *)workout completion:(UPBaseEventAPIImageCompletion)completion;
/**
* TODO: What is workout snapshot?
*
* @param workout The workout for which to request the snapshot.
* @param completion Block to be executed upon completion. The block is passed the snapshot.
*/
+ (void)getWorkoutSnapshot:(UPWorkout *)workout completion:(UPBaseEventAPISnapshotCompletion)completion;
@end
typedef NS_ENUM(NSUInteger, UPWorkoutType)
{
UPWorkoutTypeWalk = 1,
UPWorkoutTypeRun = 2,
UPWorkoutTypeWeightLifting = 3,
UPWorkoutTypeCrossTrain = 4,
UPWorkoutTypeNikeTraining = 5,
UPWorkoutTypeYoga = 6,
UPWorkoutTypePilates = 7,
UPWorkoutTypeBodyWeightExercise = 8,
UPWorkoutTypeCrossfit = 9,
UPWorkoutTypeP90X = 10,
UPWorkoutTypeZumba = 11,
UPWorkoutTypeTRX = 12,
UPWorkoutTypeSwim = 13,
UPWorkoutTypeBike = 14,
UPWorkoutTypeElliptical = 15,
UPWorkoutTypeBarMethod = 16,
UPWorkoutTypeKinectExercise = 17,
UPWorkoutTypeTennis = 18,
UPWorkoutTypeBasketball = 19,
UPWorkoutTypeGolf = 20,
UPWorkoutTypeSoccer = 21,
UPWorkoutTypeSkiOrSnowboard = 22,
UPWorkoutTypeDance = 23,
UPWorkoutTypeHike = 24,
UPWorkoutTypeCrossCountrySki = 25,
UPWorkoutTypeStationaryBike = 26,
UPWorkoutTypeCardio = 27,
UPWorkoutTypeGame = 28
};
typedef NS_ENUM(NSUInteger, UPWorkoutIntensity)
{
UPWorkoutIntensityEasy = 1,
UPWorkoutIntensityModerate = 2,
UPWorkoutIntensityIntermediate = 3,
UPWorkoutIntensityDifficult = 4,
UPWorkoutIntensityHard = 5
};
@interface UPWorkout : UPMove
/**
* Create a new workout event.
*
* @param type The type of workout that is being created.
* @param startTime The time when the workout was started. The time must be in the past.
* @param endTime The time the workout had finished. The time must be in the past.
* @param intensity The intensity of the workout.
* @param caloriesBurned The number of calories burned during the workout.
* @return Returns a new workout event.
*/
+ (UPWorkout *)workoutWithType:(UPWorkoutType)type startTime:(NSDate *)startTime endTime:(NSDate *)endTime intensity:(UPWorkoutIntensity)intensity caloriesBurned:(NSNumber *)caloriesBurned;
@property (nonatomic, assign) UPWorkoutType type;
@property (nonatomic, assign) UPWorkoutIntensity intensity;
@property (nonatomic, strong) NSDate *timeCompleted;
@property (nonatomic, strong) NSString *imageURL;
@property (nonatomic, strong) NSString *routeImageURL;
@property (nonatomic, strong) UIImage *image;
@end
@@ -0,0 +1,17 @@
//
// NSDate+UPPlatform.h
// PlatformSDK
//
// Created by Andy Roth on 4/9/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (UPPlatform)
+ (NSDate *)dateFromDayInt:(NSUInteger)dayInt inTimeZone:(NSTimeZone*)timezone;
+ (NSDate *)dateFromDayInt:(NSUInteger)dayInt;
- (NSString *)dayIntString;
@end
@@ -0,0 +1,16 @@
//
// NSDictionary+UPPlatform.h
// UPPlatformSDK
//
// Created by Andy Roth on 5/30/13.
// Copyright (c) 2013 Jawbone. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (UPPlatform)
- (NSNumber *)numberForKey:(NSString *)key;
- (NSString *)stringForKey:(NSString *)key;
@end

Some files were not shown because too many files have changed in this diff Show More