forked from loafle/openapi-generator-original
		
	remove sample files again
This commit is contained in:
		
							parent
							
								
									40d33693cf
								
							
						
					
					
						commit
						c7da910e68
					
				@ -1,41 +0,0 @@
 | 
				
			|||||||
/**
 | 
					 | 
				
			||||||
 *  Copyright 2014 Wordnik, Inc.
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 *  Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 | 
				
			||||||
 *  you may not use this file except in compliance with the License.
 | 
					 | 
				
			||||||
 *  You may obtain a copy of the License at
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 *      http://www.apache.org/licenses/LICENSE-2.0
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 *  Unless required by applicable law or agreed to in writing, software
 | 
					 | 
				
			||||||
 *  distributed under the License is distributed on an "AS IS" BASIS,
 | 
					 | 
				
			||||||
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
					 | 
				
			||||||
 *  See the License for the specific language governing permissions and
 | 
					 | 
				
			||||||
 *  limitations under the License.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import com.wordnik.swagger.codegen.BasicObjcGenerator
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
object ObjcWordnikApiCodegen extends BasicObjcGenerator {
 | 
					 | 
				
			||||||
  def main(args: Array[String]) = generateClient(args)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // where to write generated code
 | 
					 | 
				
			||||||
  val outputFolder = "samples/client/wordnik-api/objc"
 | 
					 | 
				
			||||||
  override def destinationDir = outputFolder + java.io.File.separator + "client"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  additionalParams ++= Map("projectName" -> "WordnikApiClient")
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  // supporting classes
 | 
					 | 
				
			||||||
  override def supportingFiles =
 | 
					 | 
				
			||||||
    List(
 | 
					 | 
				
			||||||
      ("SWGObject.h", destinationDir, "SWGObject.h"),
 | 
					 | 
				
			||||||
      ("SWGObject.m", destinationDir, "SWGObject.m"),
 | 
					 | 
				
			||||||
      ("SWGApiClient.h", destinationDir, "SWGApiClient.h"),
 | 
					 | 
				
			||||||
      ("SWGApiClient.m", destinationDir, "SWGApiClient.m"),
 | 
					 | 
				
			||||||
      ("SWGFile.h", destinationDir, "SWGFile.h"),
 | 
					 | 
				
			||||||
      ("SWGFile.m", destinationDir, "SWGFile.m"),
 | 
					 | 
				
			||||||
      ("SWGDate.h", destinationDir, "SWGDate.h"),
 | 
					 | 
				
			||||||
      ("SWGDate.m", destinationDir, "SWGDate.m"),
 | 
					 | 
				
			||||||
      ("Podfile.mustache", outputFolder, "Podfile")
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,4 +0,0 @@
 | 
				
			|||||||
platform :ios, '6.0'
 | 
					 | 
				
			||||||
xcodeproj 'WordnikApiClient/WordnikApiClient.xcodeproj'
 | 
					 | 
				
			||||||
pod 'AFNetworking', '~> 1.0'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,32 +0,0 @@
 | 
				
			|||||||
# Wordnik Objective-C client library
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Overview
 | 
					 | 
				
			||||||
This is a full client library for the Wordnik API.  It requires that you have a valid Wordnik API Key--you
 | 
					 | 
				
			||||||
can get one for free at http://developer.wordnik.com.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This library is built using the Wordnik [Swagger](http://swagger.wordnik.com) client library generator.  You
 | 
					 | 
				
			||||||
can re-generate this library by running ./bin/objc-wordnik-api.sh from the swagger-codegen project
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Usage
 | 
					 | 
				
			||||||
There is a simple hello world example here: (https://github.com/wordnik/swagger-codegen/blob/master/samples/client/wordnik-api/objc/WordnikApiClient/WordnikApiClient/main.m)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
It is recommended that you review the OCUnit tests to see how to use the library.  They live under the 
 | 
					 | 
				
			||||||
[Tests](https://github.com/wordnik/swagger-codegen/tree/master/samples/client/wordnik-api/objc/tests) directory and require that you enter your API_KEY, as well as a username
 | 
					 | 
				
			||||||
and password to authenticate with.  To do this:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Choose "Product/Manage Schemes"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Highlight "WordnikApiTests", click "Edit"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Select "Test" on the left panel and add (or update the placeholder) environment variable for API_KEY, USER_NAME, PASSWORD
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* Dismiss and run the tests
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Requirements
 | 
					 | 
				
			||||||
You need a valid Wordnik API key to access the API--to get one, go to [Wordnik Developer](http://developer.wordnik.com) to sign up.  It costs nothing!
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This project was built with the following minimum requirements:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
* iOS 5 or greater
 | 
					 | 
				
			||||||
* ARC enabled compiler
 | 
					 | 
				
			||||||
@ -1,806 +0,0 @@
 | 
				
			|||||||
// !$*UTF8*$!
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
	archiveVersion = 1;
 | 
					 | 
				
			||||||
	classes = {
 | 
					 | 
				
			||||||
	};
 | 
					 | 
				
			||||||
	objectVersion = 46;
 | 
					 | 
				
			||||||
	objects = {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXBuildFile section */
 | 
					 | 
				
			||||||
		EA224D021613ABE700129740 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA224D011613ABE700129740 /* Foundation.framework */; };
 | 
					 | 
				
			||||||
		EA224D051613ABE700129740 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = EA224D041613ABE700129740 /* main.m */; };
 | 
					 | 
				
			||||||
		EA224D091613ABE700129740 /* WordnikApiClient.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = EA224D081613ABE700129740 /* WordnikApiClient.1 */; };
 | 
					 | 
				
			||||||
		EA224D161613ABFA00129740 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA224D151613ABFA00129740 /* SenTestingKit.framework */; };
 | 
					 | 
				
			||||||
		EA224D181613ABFA00129740 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EA224D171613ABFA00129740 /* Cocoa.framework */; };
 | 
					 | 
				
			||||||
		EA5A02A31613AC66003B3E41 /* NIKAccountApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02541613AC66003B3E41 /* NIKAccountApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02A41613AC66003B3E41 /* NIKApiInvoker.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02561613AC66003B3E41 /* NIKApiInvoker.m */; };
 | 
					 | 
				
			||||||
		EA5A02A51613AC66003B3E41 /* NIKDate.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02581613AC66003B3E41 /* NIKDate.m */; };
 | 
					 | 
				
			||||||
		EA5A02A61613AC66003B3E41 /* NIKSwaggerObject.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025A1613AC66003B3E41 /* NIKSwaggerObject.m */; };
 | 
					 | 
				
			||||||
		EA5A02A71613AC66003B3E41 /* NIKWordApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025C1613AC66003B3E41 /* NIKWordApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02A81613AC66003B3E41 /* NIKWordListApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025E1613AC66003B3E41 /* NIKWordListApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02A91613AC66003B3E41 /* NIKWordListsApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02601613AC66003B3E41 /* NIKWordListsApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02AA1613AC66003B3E41 /* NIKWordsApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02621613AC66003B3E41 /* NIKWordsApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02AB1613AC66003B3E41 /* NIKFrequency.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02641613AC66003B3E41 /* NIKFrequency.m */; };
 | 
					 | 
				
			||||||
		EA5A02AC1613AC66003B3E41 /* NIKSentence.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02661613AC66003B3E41 /* NIKSentence.m */; };
 | 
					 | 
				
			||||||
		EA5A02AD1613AC66003B3E41 /* NIKSimpleExample.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02681613AC66003B3E41 /* NIKSimpleExample.m */; };
 | 
					 | 
				
			||||||
		EA5A02AE1613AC66003B3E41 /* NIKSyllable.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026A1613AC66003B3E41 /* NIKSyllable.m */; };
 | 
					 | 
				
			||||||
		EA5A02AF1613AC66003B3E41 /* NIKTextPron.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026B1613AC66003B3E41 /* NIKTextPron.m */; };
 | 
					 | 
				
			||||||
		EA5A02B01613AC66003B3E41 /* NIKApiTokenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026D1613AC66003B3E41 /* NIKApiTokenStatus.m */; };
 | 
					 | 
				
			||||||
		EA5A02B11613AC66003B3E41 /* NIKAudioFile.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026F1613AC66003B3E41 /* NIKAudioFile.m */; };
 | 
					 | 
				
			||||||
		EA5A02B21613AC66003B3E41 /* NIKAuthenticationToken.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02711613AC66003B3E41 /* NIKAuthenticationToken.m */; };
 | 
					 | 
				
			||||||
		EA5A02B31613AC66003B3E41 /* NIKBigram.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02731613AC66003B3E41 /* NIKBigram.m */; };
 | 
					 | 
				
			||||||
		EA5A02B41613AC66003B3E41 /* NIKCitation.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02751613AC66003B3E41 /* NIKCitation.m */; };
 | 
					 | 
				
			||||||
		EA5A02B51613AC66003B3E41 /* NIKContentProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02771613AC66003B3E41 /* NIKContentProvider.m */; };
 | 
					 | 
				
			||||||
		EA5A02B61613AC66003B3E41 /* NIKDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02791613AC66003B3E41 /* NIKDefinition.m */; };
 | 
					 | 
				
			||||||
		EA5A02B71613AC66003B3E41 /* NIKDefinitionSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027B1613AC66003B3E41 /* NIKDefinitionSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA5A02B81613AC66003B3E41 /* NIKExample.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027D1613AC66003B3E41 /* NIKExample.m */; };
 | 
					 | 
				
			||||||
		EA5A02B91613AC66003B3E41 /* NIKExampleSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027F1613AC66003B3E41 /* NIKExampleSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA5A02BA1613AC66003B3E41 /* NIKExampleUsage.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02811613AC66003B3E41 /* NIKExampleUsage.m */; };
 | 
					 | 
				
			||||||
		EA5A02BB1613AC66003B3E41 /* NIKFacet.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02831613AC66003B3E41 /* NIKFacet.m */; };
 | 
					 | 
				
			||||||
		EA5A02BC1613AC66003B3E41 /* NIKFacetValue.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02851613AC66003B3E41 /* NIKFacetValue.m */; };
 | 
					 | 
				
			||||||
		EA5A02BD1613AC66003B3E41 /* NIKFrequencySummary.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02871613AC66003B3E41 /* NIKFrequencySummary.m */; };
 | 
					 | 
				
			||||||
		EA5A02BE1613AC66003B3E41 /* NIKLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02891613AC66003B3E41 /* NIKLabel.m */; };
 | 
					 | 
				
			||||||
		EA5A02BF1613AC66003B3E41 /* NIKNote.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028B1613AC66003B3E41 /* NIKNote.m */; };
 | 
					 | 
				
			||||||
		EA5A02C01613AC66003B3E41 /* NIKRelated.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028D1613AC66003B3E41 /* NIKRelated.m */; };
 | 
					 | 
				
			||||||
		EA5A02C11613AC66003B3E41 /* NIKScoredWord.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028F1613AC66003B3E41 /* NIKScoredWord.m */; };
 | 
					 | 
				
			||||||
		EA5A02C21613AC66003B3E41 /* NIKSimpleDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02911613AC66003B3E41 /* NIKSimpleDefinition.m */; };
 | 
					 | 
				
			||||||
		EA5A02C31613AC66003B3E41 /* NIKStringValue.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02931613AC66003B3E41 /* NIKStringValue.m */; };
 | 
					 | 
				
			||||||
		EA5A02C41613AC66003B3E41 /* NIKUser.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02961613AC66003B3E41 /* NIKUser.m */; };
 | 
					 | 
				
			||||||
		EA5A02C51613AC66003B3E41 /* NIKWordList.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02981613AC66003B3E41 /* NIKWordList.m */; };
 | 
					 | 
				
			||||||
		EA5A02C61613AC66003B3E41 /* NIKWordListWord.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029A1613AC66003B3E41 /* NIKWordListWord.m */; };
 | 
					 | 
				
			||||||
		EA5A02C71613AC66003B3E41 /* NIKWordObject.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029C1613AC66003B3E41 /* NIKWordObject.m */; };
 | 
					 | 
				
			||||||
		EA5A02C81613AC66003B3E41 /* NIKWordOfTheDay.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029E1613AC66003B3E41 /* NIKWordOfTheDay.m */; };
 | 
					 | 
				
			||||||
		EA5A02C91613AC66003B3E41 /* NIKWordSearchResult.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02A01613AC66003B3E41 /* NIKWordSearchResult.m */; };
 | 
					 | 
				
			||||||
		EA5A02CA1613AC66003B3E41 /* NIKWordSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02A21613AC66003B3E41 /* NIKWordSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA5A02E61614017E003B3E41 /* WordApiTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02E51614017E003B3E41 /* WordApiTest.m */; };
 | 
					 | 
				
			||||||
		EA5A02EB161403F4003B3E41 /* NIKAccountApi.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02531613AC66003B3E41 /* NIKAccountApi.h */; };
 | 
					 | 
				
			||||||
		EA5A02EC161403F4003B3E41 /* NIKAccountApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02541613AC66003B3E41 /* NIKAccountApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02ED161403F4003B3E41 /* NIKApiInvoker.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02551613AC66003B3E41 /* NIKApiInvoker.h */; };
 | 
					 | 
				
			||||||
		EA5A02EE161403F4003B3E41 /* NIKApiInvoker.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02561613AC66003B3E41 /* NIKApiInvoker.m */; };
 | 
					 | 
				
			||||||
		EA5A02EF161403F4003B3E41 /* NIKDate.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02571613AC66003B3E41 /* NIKDate.h */; };
 | 
					 | 
				
			||||||
		EA5A02F0161403F4003B3E41 /* NIKDate.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02581613AC66003B3E41 /* NIKDate.m */; };
 | 
					 | 
				
			||||||
		EA5A02F1161403F4003B3E41 /* NIKSwaggerObject.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02591613AC66003B3E41 /* NIKSwaggerObject.h */; };
 | 
					 | 
				
			||||||
		EA5A02F2161403F4003B3E41 /* NIKSwaggerObject.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025A1613AC66003B3E41 /* NIKSwaggerObject.m */; };
 | 
					 | 
				
			||||||
		EA5A02F3161403F4003B3E41 /* NIKWordApi.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025B1613AC66003B3E41 /* NIKWordApi.h */; };
 | 
					 | 
				
			||||||
		EA5A02F4161403F4003B3E41 /* NIKWordApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025C1613AC66003B3E41 /* NIKWordApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02F5161403F4003B3E41 /* NIKWordListApi.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025D1613AC66003B3E41 /* NIKWordListApi.h */; };
 | 
					 | 
				
			||||||
		EA5A02F6161403F4003B3E41 /* NIKWordListApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025E1613AC66003B3E41 /* NIKWordListApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02F7161403F4003B3E41 /* NIKWordListsApi.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A025F1613AC66003B3E41 /* NIKWordListsApi.h */; };
 | 
					 | 
				
			||||||
		EA5A02F8161403F4003B3E41 /* NIKWordListsApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02601613AC66003B3E41 /* NIKWordListsApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02F9161403F4003B3E41 /* NIKWordsApi.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02611613AC66003B3E41 /* NIKWordsApi.h */; };
 | 
					 | 
				
			||||||
		EA5A02FA161403F4003B3E41 /* NIKWordsApi.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02621613AC66003B3E41 /* NIKWordsApi.m */; };
 | 
					 | 
				
			||||||
		EA5A02FB161403F4003B3E41 /* NIKFrequency.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02631613AC66003B3E41 /* NIKFrequency.h */; };
 | 
					 | 
				
			||||||
		EA5A02FC161403F4003B3E41 /* NIKFrequency.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02641613AC66003B3E41 /* NIKFrequency.m */; };
 | 
					 | 
				
			||||||
		EA5A02FD161403F4003B3E41 /* NIKSentence.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02651613AC66003B3E41 /* NIKSentence.h */; };
 | 
					 | 
				
			||||||
		EA5A02FE161403F4003B3E41 /* NIKSentence.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02661613AC66003B3E41 /* NIKSentence.m */; };
 | 
					 | 
				
			||||||
		EA5A02FF161403F4003B3E41 /* NIKSimpleExample.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02671613AC66003B3E41 /* NIKSimpleExample.h */; };
 | 
					 | 
				
			||||||
		EA5A0300161403F4003B3E41 /* NIKSimpleExample.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02681613AC66003B3E41 /* NIKSimpleExample.m */; };
 | 
					 | 
				
			||||||
		EA5A0301161403F4003B3E41 /* NIKSyllable.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02691613AC66003B3E41 /* NIKSyllable.h */; };
 | 
					 | 
				
			||||||
		EA5A0302161403F4003B3E41 /* NIKSyllable.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026A1613AC66003B3E41 /* NIKSyllable.m */; };
 | 
					 | 
				
			||||||
		EA5A0303161403F4003B3E41 /* NIKTextPron.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026B1613AC66003B3E41 /* NIKTextPron.m */; };
 | 
					 | 
				
			||||||
		EA5A0304161403F4003B3E41 /* NIKApiTokenStatus.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026C1613AC66003B3E41 /* NIKApiTokenStatus.h */; };
 | 
					 | 
				
			||||||
		EA5A0305161403F4003B3E41 /* NIKApiTokenStatus.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026D1613AC66003B3E41 /* NIKApiTokenStatus.m */; };
 | 
					 | 
				
			||||||
		EA5A0306161403F4003B3E41 /* NIKAudioFile.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026E1613AC66003B3E41 /* NIKAudioFile.h */; };
 | 
					 | 
				
			||||||
		EA5A0307161403F4003B3E41 /* NIKAudioFile.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A026F1613AC66003B3E41 /* NIKAudioFile.m */; };
 | 
					 | 
				
			||||||
		EA5A0308161403F4003B3E41 /* NIKAuthenticationToken.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02701613AC66003B3E41 /* NIKAuthenticationToken.h */; };
 | 
					 | 
				
			||||||
		EA5A0309161403F4003B3E41 /* NIKAuthenticationToken.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02711613AC66003B3E41 /* NIKAuthenticationToken.m */; };
 | 
					 | 
				
			||||||
		EA5A030A161403F4003B3E41 /* NIKBigram.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02721613AC66003B3E41 /* NIKBigram.h */; };
 | 
					 | 
				
			||||||
		EA5A030B161403F4003B3E41 /* NIKBigram.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02731613AC66003B3E41 /* NIKBigram.m */; };
 | 
					 | 
				
			||||||
		EA5A030C161403F4003B3E41 /* NIKCitation.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02741613AC66003B3E41 /* NIKCitation.h */; };
 | 
					 | 
				
			||||||
		EA5A030D161403F4003B3E41 /* NIKCitation.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02751613AC66003B3E41 /* NIKCitation.m */; };
 | 
					 | 
				
			||||||
		EA5A030E161403F4003B3E41 /* NIKContentProvider.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02761613AC66003B3E41 /* NIKContentProvider.h */; };
 | 
					 | 
				
			||||||
		EA5A030F161403F4003B3E41 /* NIKContentProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02771613AC66003B3E41 /* NIKContentProvider.m */; };
 | 
					 | 
				
			||||||
		EA5A0310161403F4003B3E41 /* NIKDefinition.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02781613AC66003B3E41 /* NIKDefinition.h */; };
 | 
					 | 
				
			||||||
		EA5A0311161403F4003B3E41 /* NIKDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02791613AC66003B3E41 /* NIKDefinition.m */; };
 | 
					 | 
				
			||||||
		EA5A0312161403F4003B3E41 /* NIKDefinitionSearchResults.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027A1613AC66003B3E41 /* NIKDefinitionSearchResults.h */; };
 | 
					 | 
				
			||||||
		EA5A0313161403F4003B3E41 /* NIKDefinitionSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027B1613AC66003B3E41 /* NIKDefinitionSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA5A0314161403F4003B3E41 /* NIKExample.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027C1613AC66003B3E41 /* NIKExample.h */; };
 | 
					 | 
				
			||||||
		EA5A0315161403F4003B3E41 /* NIKExample.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027D1613AC66003B3E41 /* NIKExample.m */; };
 | 
					 | 
				
			||||||
		EA5A0316161403F4003B3E41 /* NIKExampleSearchResults.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027E1613AC66003B3E41 /* NIKExampleSearchResults.h */; };
 | 
					 | 
				
			||||||
		EA5A0317161403F4003B3E41 /* NIKExampleSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A027F1613AC66003B3E41 /* NIKExampleSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA5A0318161403F4003B3E41 /* NIKExampleUsage.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02801613AC66003B3E41 /* NIKExampleUsage.h */; };
 | 
					 | 
				
			||||||
		EA5A0319161403F4003B3E41 /* NIKExampleUsage.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02811613AC66003B3E41 /* NIKExampleUsage.m */; };
 | 
					 | 
				
			||||||
		EA5A031A161403F4003B3E41 /* NIKFacet.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02821613AC66003B3E41 /* NIKFacet.h */; };
 | 
					 | 
				
			||||||
		EA5A031B161403F4003B3E41 /* NIKFacet.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02831613AC66003B3E41 /* NIKFacet.m */; };
 | 
					 | 
				
			||||||
		EA5A031C161403F4003B3E41 /* NIKFacetValue.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02841613AC66003B3E41 /* NIKFacetValue.h */; };
 | 
					 | 
				
			||||||
		EA5A031D161403F4003B3E41 /* NIKFacetValue.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02851613AC66003B3E41 /* NIKFacetValue.m */; };
 | 
					 | 
				
			||||||
		EA5A031E161403F4003B3E41 /* NIKFrequencySummary.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02861613AC66003B3E41 /* NIKFrequencySummary.h */; };
 | 
					 | 
				
			||||||
		EA5A031F161403F4003B3E41 /* NIKFrequencySummary.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02871613AC66003B3E41 /* NIKFrequencySummary.m */; };
 | 
					 | 
				
			||||||
		EA5A0320161403F4003B3E41 /* NIKLabel.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02881613AC66003B3E41 /* NIKLabel.h */; };
 | 
					 | 
				
			||||||
		EA5A0321161403F4003B3E41 /* NIKLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02891613AC66003B3E41 /* NIKLabel.m */; };
 | 
					 | 
				
			||||||
		EA5A0322161403F4003B3E41 /* NIKNote.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028A1613AC66003B3E41 /* NIKNote.h */; };
 | 
					 | 
				
			||||||
		EA5A0323161403F4003B3E41 /* NIKNote.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028B1613AC66003B3E41 /* NIKNote.m */; };
 | 
					 | 
				
			||||||
		EA5A0324161403F4003B3E41 /* NIKRelated.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028C1613AC66003B3E41 /* NIKRelated.h */; };
 | 
					 | 
				
			||||||
		EA5A0325161403F4003B3E41 /* NIKRelated.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028D1613AC66003B3E41 /* NIKRelated.m */; };
 | 
					 | 
				
			||||||
		EA5A0326161403F4003B3E41 /* NIKScoredWord.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028E1613AC66003B3E41 /* NIKScoredWord.h */; };
 | 
					 | 
				
			||||||
		EA5A0327161403F4003B3E41 /* NIKScoredWord.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A028F1613AC66003B3E41 /* NIKScoredWord.m */; };
 | 
					 | 
				
			||||||
		EA5A0328161403F4003B3E41 /* NIKSimpleDefinition.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02901613AC66003B3E41 /* NIKSimpleDefinition.h */; };
 | 
					 | 
				
			||||||
		EA5A0329161403F4003B3E41 /* NIKSimpleDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02911613AC66003B3E41 /* NIKSimpleDefinition.m */; };
 | 
					 | 
				
			||||||
		EA5A032A161403F4003B3E41 /* NIKStringValue.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02921613AC66003B3E41 /* NIKStringValue.h */; };
 | 
					 | 
				
			||||||
		EA5A032B161403F4003B3E41 /* NIKStringValue.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02931613AC66003B3E41 /* NIKStringValue.m */; };
 | 
					 | 
				
			||||||
		EA5A032C161403F4003B3E41 /* NIKTextPron.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02941613AC66003B3E41 /* NIKTextPron.h */; };
 | 
					 | 
				
			||||||
		EA5A032D161403F4003B3E41 /* NIKUser.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02951613AC66003B3E41 /* NIKUser.h */; };
 | 
					 | 
				
			||||||
		EA5A032E161403F4003B3E41 /* NIKUser.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02961613AC66003B3E41 /* NIKUser.m */; };
 | 
					 | 
				
			||||||
		EA5A032F161403F4003B3E41 /* NIKWordList.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02971613AC66003B3E41 /* NIKWordList.h */; };
 | 
					 | 
				
			||||||
		EA5A0330161403F4003B3E41 /* NIKWordList.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02981613AC66003B3E41 /* NIKWordList.m */; };
 | 
					 | 
				
			||||||
		EA5A0331161403F4003B3E41 /* NIKWordListWord.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02991613AC66003B3E41 /* NIKWordListWord.h */; };
 | 
					 | 
				
			||||||
		EA5A0332161403F4003B3E41 /* NIKWordListWord.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029A1613AC66003B3E41 /* NIKWordListWord.m */; };
 | 
					 | 
				
			||||||
		EA5A0333161403F4003B3E41 /* NIKWordObject.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029B1613AC66003B3E41 /* NIKWordObject.h */; };
 | 
					 | 
				
			||||||
		EA5A0334161403F4003B3E41 /* NIKWordObject.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029C1613AC66003B3E41 /* NIKWordObject.m */; };
 | 
					 | 
				
			||||||
		EA5A0335161403F4003B3E41 /* NIKWordOfTheDay.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029D1613AC66003B3E41 /* NIKWordOfTheDay.h */; };
 | 
					 | 
				
			||||||
		EA5A0336161403F4003B3E41 /* NIKWordOfTheDay.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029E1613AC66003B3E41 /* NIKWordOfTheDay.m */; };
 | 
					 | 
				
			||||||
		EA5A0337161403F4003B3E41 /* NIKWordSearchResult.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A029F1613AC66003B3E41 /* NIKWordSearchResult.h */; };
 | 
					 | 
				
			||||||
		EA5A0338161403F4003B3E41 /* NIKWordSearchResult.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02A01613AC66003B3E41 /* NIKWordSearchResult.m */; };
 | 
					 | 
				
			||||||
		EA5A0339161403F4003B3E41 /* NIKWordSearchResults.h in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02A11613AC66003B3E41 /* NIKWordSearchResults.h */; };
 | 
					 | 
				
			||||||
		EA5A033A161403F4003B3E41 /* NIKWordSearchResults.m in Sources */ = {isa = PBXBuildFile; fileRef = EA5A02A21613AC66003B3E41 /* NIKWordSearchResults.m */; };
 | 
					 | 
				
			||||||
		EA8DAC3216149DA600817A86 /* AccountApiTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EA8DAC3116149DA600817A86 /* AccountApiTest.m */; };
 | 
					 | 
				
			||||||
		EA8DAC3516149E4B00817A86 /* WordsApiTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EA8DAC3416149E4B00817A86 /* WordsApiTest.m */; };
 | 
					 | 
				
			||||||
		EA8DAC381614D15F00817A86 /* WordListApiTest.m in Sources */ = {isa = PBXBuildFile; fileRef = EA8DAC371614D15F00817A86 /* WordListApiTest.m */; };
 | 
					 | 
				
			||||||
/* End PBXBuildFile section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXCopyFilesBuildPhase section */
 | 
					 | 
				
			||||||
		EA224CFB1613ABE700129740 /* CopyFiles */ = {
 | 
					 | 
				
			||||||
			isa = PBXCopyFilesBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			dstPath = /usr/share/man/man1/;
 | 
					 | 
				
			||||||
			dstSubfolderSpec = 0;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
				EA224D091613ABE700129740 /* WordnikApiClient.1 in CopyFiles */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 1;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXCopyFilesBuildPhase section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXFileReference section */
 | 
					 | 
				
			||||||
		EA224CFD1613ABE700129740 /* WordnikApiClient */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = WordnikApiClient; sourceTree = BUILT_PRODUCTS_DIR; };
 | 
					 | 
				
			||||||
		EA224D011613ABE700129740 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
 | 
					 | 
				
			||||||
		EA224D041613ABE700129740 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA224D071613ABE700129740 /* WordnikApiClient-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WordnikApiClient-Prefix.pch"; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA224D081613ABE700129740 /* WordnikApiClient.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = WordnikApiClient.1; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA224D141613ABFA00129740 /* WordnikApiClientTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = WordnikApiClientTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
 | 
					 | 
				
			||||||
		EA224D151613ABFA00129740 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
 | 
					 | 
				
			||||||
		EA224D171613ABFA00129740 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };
 | 
					 | 
				
			||||||
		EA224D1A1613ABFA00129740 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
 | 
					 | 
				
			||||||
		EA224D1B1613ABFA00129740 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
 | 
					 | 
				
			||||||
		EA224D1C1613ABFA00129740 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
 | 
					 | 
				
			||||||
		EA5A02531613AC66003B3E41 /* NIKAccountApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKAccountApi.h; path = ../client/NIKAccountApi.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02541613AC66003B3E41 /* NIKAccountApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKAccountApi.m; path = ../client/NIKAccountApi.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02551613AC66003B3E41 /* NIKApiInvoker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKApiInvoker.h; path = ../client/NIKApiInvoker.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02561613AC66003B3E41 /* NIKApiInvoker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKApiInvoker.m; path = ../client/NIKApiInvoker.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02571613AC66003B3E41 /* NIKDate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKDate.h; path = ../client/NIKDate.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02581613AC66003B3E41 /* NIKDate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKDate.m; path = ../client/NIKDate.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02591613AC66003B3E41 /* NIKSwaggerObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKSwaggerObject.h; path = ../client/NIKSwaggerObject.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025A1613AC66003B3E41 /* NIKSwaggerObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKSwaggerObject.m; path = ../client/NIKSwaggerObject.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025B1613AC66003B3E41 /* NIKWordApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordApi.h; path = ../client/NIKWordApi.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025C1613AC66003B3E41 /* NIKWordApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordApi.m; path = ../client/NIKWordApi.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025D1613AC66003B3E41 /* NIKWordListApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordListApi.h; path = ../client/NIKWordListApi.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025E1613AC66003B3E41 /* NIKWordListApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordListApi.m; path = ../client/NIKWordListApi.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A025F1613AC66003B3E41 /* NIKWordListsApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordListsApi.h; path = ../client/NIKWordListsApi.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02601613AC66003B3E41 /* NIKWordListsApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordListsApi.m; path = ../client/NIKWordListsApi.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02611613AC66003B3E41 /* NIKWordsApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordsApi.h; path = ../client/NIKWordsApi.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02621613AC66003B3E41 /* NIKWordsApi.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordsApi.m; path = ../client/NIKWordsApi.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02631613AC66003B3E41 /* NIKFrequency.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKFrequency.h; path = ../client/NIKFrequency.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02641613AC66003B3E41 /* NIKFrequency.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKFrequency.m; path = ../client/NIKFrequency.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02651613AC66003B3E41 /* NIKSentence.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKSentence.h; path = ../client/NIKSentence.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02661613AC66003B3E41 /* NIKSentence.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKSentence.m; path = ../client/NIKSentence.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02671613AC66003B3E41 /* NIKSimpleExample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKSimpleExample.h; path = ../client/NIKSimpleExample.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02681613AC66003B3E41 /* NIKSimpleExample.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKSimpleExample.m; path = ../client/NIKSimpleExample.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02691613AC66003B3E41 /* NIKSyllable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKSyllable.h; path = ../client/NIKSyllable.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026A1613AC66003B3E41 /* NIKSyllable.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKSyllable.m; path = ../client/NIKSyllable.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026B1613AC66003B3E41 /* NIKTextPron.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKTextPron.m; path = ../client/NIKTextPron.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026C1613AC66003B3E41 /* NIKApiTokenStatus.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKApiTokenStatus.h; path = ../client/NIKApiTokenStatus.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026D1613AC66003B3E41 /* NIKApiTokenStatus.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKApiTokenStatus.m; path = ../client/NIKApiTokenStatus.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026E1613AC66003B3E41 /* NIKAudioFile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKAudioFile.h; path = ../client/NIKAudioFile.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A026F1613AC66003B3E41 /* NIKAudioFile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKAudioFile.m; path = ../client/NIKAudioFile.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02701613AC66003B3E41 /* NIKAuthenticationToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKAuthenticationToken.h; path = ../client/NIKAuthenticationToken.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02711613AC66003B3E41 /* NIKAuthenticationToken.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKAuthenticationToken.m; path = ../client/NIKAuthenticationToken.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02721613AC66003B3E41 /* NIKBigram.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKBigram.h; path = ../client/NIKBigram.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02731613AC66003B3E41 /* NIKBigram.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKBigram.m; path = ../client/NIKBigram.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02741613AC66003B3E41 /* NIKCitation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKCitation.h; path = ../client/NIKCitation.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02751613AC66003B3E41 /* NIKCitation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKCitation.m; path = ../client/NIKCitation.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02761613AC66003B3E41 /* NIKContentProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKContentProvider.h; path = ../client/NIKContentProvider.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02771613AC66003B3E41 /* NIKContentProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKContentProvider.m; path = ../client/NIKContentProvider.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02781613AC66003B3E41 /* NIKDefinition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKDefinition.h; path = ../client/NIKDefinition.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02791613AC66003B3E41 /* NIKDefinition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKDefinition.m; path = ../client/NIKDefinition.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027A1613AC66003B3E41 /* NIKDefinitionSearchResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKDefinitionSearchResults.h; path = ../client/NIKDefinitionSearchResults.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027B1613AC66003B3E41 /* NIKDefinitionSearchResults.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKDefinitionSearchResults.m; path = ../client/NIKDefinitionSearchResults.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027C1613AC66003B3E41 /* NIKExample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKExample.h; path = ../client/NIKExample.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027D1613AC66003B3E41 /* NIKExample.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKExample.m; path = ../client/NIKExample.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027E1613AC66003B3E41 /* NIKExampleSearchResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKExampleSearchResults.h; path = ../client/NIKExampleSearchResults.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A027F1613AC66003B3E41 /* NIKExampleSearchResults.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKExampleSearchResults.m; path = ../client/NIKExampleSearchResults.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02801613AC66003B3E41 /* NIKExampleUsage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKExampleUsage.h; path = ../client/NIKExampleUsage.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02811613AC66003B3E41 /* NIKExampleUsage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKExampleUsage.m; path = ../client/NIKExampleUsage.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02821613AC66003B3E41 /* NIKFacet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKFacet.h; path = ../client/NIKFacet.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02831613AC66003B3E41 /* NIKFacet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKFacet.m; path = ../client/NIKFacet.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02841613AC66003B3E41 /* NIKFacetValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKFacetValue.h; path = ../client/NIKFacetValue.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02851613AC66003B3E41 /* NIKFacetValue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKFacetValue.m; path = ../client/NIKFacetValue.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02861613AC66003B3E41 /* NIKFrequencySummary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKFrequencySummary.h; path = ../client/NIKFrequencySummary.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02871613AC66003B3E41 /* NIKFrequencySummary.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKFrequencySummary.m; path = ../client/NIKFrequencySummary.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02881613AC66003B3E41 /* NIKLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKLabel.h; path = ../client/NIKLabel.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02891613AC66003B3E41 /* NIKLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKLabel.m; path = ../client/NIKLabel.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028A1613AC66003B3E41 /* NIKNote.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKNote.h; path = ../client/NIKNote.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028B1613AC66003B3E41 /* NIKNote.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKNote.m; path = ../client/NIKNote.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028C1613AC66003B3E41 /* NIKRelated.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKRelated.h; path = ../client/NIKRelated.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028D1613AC66003B3E41 /* NIKRelated.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKRelated.m; path = ../client/NIKRelated.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028E1613AC66003B3E41 /* NIKScoredWord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKScoredWord.h; path = ../client/NIKScoredWord.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A028F1613AC66003B3E41 /* NIKScoredWord.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKScoredWord.m; path = ../client/NIKScoredWord.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02901613AC66003B3E41 /* NIKSimpleDefinition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKSimpleDefinition.h; path = ../client/NIKSimpleDefinition.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02911613AC66003B3E41 /* NIKSimpleDefinition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKSimpleDefinition.m; path = ../client/NIKSimpleDefinition.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02921613AC66003B3E41 /* NIKStringValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKStringValue.h; path = ../client/NIKStringValue.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02931613AC66003B3E41 /* NIKStringValue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKStringValue.m; path = ../client/NIKStringValue.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02941613AC66003B3E41 /* NIKTextPron.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKTextPron.h; path = ../client/NIKTextPron.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02951613AC66003B3E41 /* NIKUser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKUser.h; path = ../client/NIKUser.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02961613AC66003B3E41 /* NIKUser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKUser.m; path = ../client/NIKUser.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02971613AC66003B3E41 /* NIKWordList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordList.h; path = ../client/NIKWordList.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02981613AC66003B3E41 /* NIKWordList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordList.m; path = ../client/NIKWordList.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02991613AC66003B3E41 /* NIKWordListWord.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordListWord.h; path = ../client/NIKWordListWord.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029A1613AC66003B3E41 /* NIKWordListWord.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordListWord.m; path = ../client/NIKWordListWord.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029B1613AC66003B3E41 /* NIKWordObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordObject.h; path = ../client/NIKWordObject.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029C1613AC66003B3E41 /* NIKWordObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordObject.m; path = ../client/NIKWordObject.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029D1613AC66003B3E41 /* NIKWordOfTheDay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordOfTheDay.h; path = ../client/NIKWordOfTheDay.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029E1613AC66003B3E41 /* NIKWordOfTheDay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordOfTheDay.m; path = ../client/NIKWordOfTheDay.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A029F1613AC66003B3E41 /* NIKWordSearchResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordSearchResult.h; path = ../client/NIKWordSearchResult.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02A01613AC66003B3E41 /* NIKWordSearchResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordSearchResult.m; path = ../client/NIKWordSearchResult.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02A11613AC66003B3E41 /* NIKWordSearchResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NIKWordSearchResults.h; path = ../client/NIKWordSearchResults.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02A21613AC66003B3E41 /* NIKWordSearchResults.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NIKWordSearchResults.m; path = ../client/NIKWordSearchResults.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02CD1613AD47003B3E41 /* WordnikApiClientTests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "WordnikApiClientTests-Info.plist"; path = "../tests/WordnikApiClientTests-Info.plist"; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02CE1613AD47003B3E41 /* WordnikApiClientTests-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "WordnikApiClientTests-Prefix.pch"; path = "../tests/WordnikApiClientTests-Prefix.pch"; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02E41614017E003B3E41 /* WordApiTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WordApiTest.h; path = ../tests/WordApiTest.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA5A02E51614017E003B3E41 /* WordApiTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WordApiTest.m; path = ../tests/WordApiTest.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC3016149DA600817A86 /* AccountApiTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AccountApiTest.h; path = ../tests/AccountApiTest.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC3116149DA600817A86 /* AccountApiTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AccountApiTest.m; path = ../tests/AccountApiTest.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC3316149E4B00817A86 /* WordsApiTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WordsApiTest.h; path = ../tests/WordsApiTest.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC3416149E4B00817A86 /* WordsApiTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WordsApiTest.m; path = ../tests/WordsApiTest.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC361614D15F00817A86 /* WordListApiTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WordListApiTest.h; path = ../tests/WordListApiTest.h; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
		EA8DAC371614D15F00817A86 /* WordListApiTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WordListApiTest.m; path = ../tests/WordListApiTest.m; sourceTree = "<group>"; };
 | 
					 | 
				
			||||||
/* End PBXFileReference section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXFrameworksBuildPhase section */
 | 
					 | 
				
			||||||
		EA224CFA1613ABE700129740 /* Frameworks */ = {
 | 
					 | 
				
			||||||
			isa = PBXFrameworksBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
				EA224D021613ABE700129740 /* Foundation.framework in Frameworks */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D101613ABFA00129740 /* Frameworks */ = {
 | 
					 | 
				
			||||||
			isa = PBXFrameworksBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
				EA224D161613ABFA00129740 /* SenTestingKit.framework in Frameworks */,
 | 
					 | 
				
			||||||
				EA224D181613ABFA00129740 /* Cocoa.framework in Frameworks */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXFrameworksBuildPhase section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXGroup section */
 | 
					 | 
				
			||||||
		EA224CF21613ABE700129740 = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA5A02CC1613AC6B003B3E41 /* Generated Code */,
 | 
					 | 
				
			||||||
				EA224D2A1613AC2200129740 /* tests */,
 | 
					 | 
				
			||||||
				EA224D031613ABE700129740 /* WordnikApiClient */,
 | 
					 | 
				
			||||||
				EA224D001613ABE700129740 /* Frameworks */,
 | 
					 | 
				
			||||||
				EA224CFE1613ABE700129740 /* Products */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224CFE1613ABE700129740 /* Products */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA224CFD1613ABE700129740 /* WordnikApiClient */,
 | 
					 | 
				
			||||||
				EA224D141613ABFA00129740 /* WordnikApiClientTests.octest */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = Products;
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D001613ABE700129740 /* Frameworks */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA224D011613ABE700129740 /* Foundation.framework */,
 | 
					 | 
				
			||||||
				EA224D151613ABFA00129740 /* SenTestingKit.framework */,
 | 
					 | 
				
			||||||
				EA224D171613ABFA00129740 /* Cocoa.framework */,
 | 
					 | 
				
			||||||
				EA224D191613ABFA00129740 /* Other Frameworks */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = Frameworks;
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D031613ABE700129740 /* WordnikApiClient */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA224D041613ABE700129740 /* main.m */,
 | 
					 | 
				
			||||||
				EA224D081613ABE700129740 /* WordnikApiClient.1 */,
 | 
					 | 
				
			||||||
				EA224D061613ABE700129740 /* Supporting Files */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			path = WordnikApiClient;
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D061613ABE700129740 /* Supporting Files */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA224D071613ABE700129740 /* WordnikApiClient-Prefix.pch */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "Supporting Files";
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D191613ABFA00129740 /* Other Frameworks */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA224D1A1613ABFA00129740 /* AppKit.framework */,
 | 
					 | 
				
			||||||
				EA224D1B1613ABFA00129740 /* CoreData.framework */,
 | 
					 | 
				
			||||||
				EA224D1C1613ABFA00129740 /* Foundation.framework */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "Other Frameworks";
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D2A1613AC2200129740 /* tests */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA5A02CD1613AD47003B3E41 /* WordnikApiClientTests-Info.plist */,
 | 
					 | 
				
			||||||
				EA5A02CE1613AD47003B3E41 /* WordnikApiClientTests-Prefix.pch */,
 | 
					 | 
				
			||||||
				EA5A02E41614017E003B3E41 /* WordApiTest.h */,
 | 
					 | 
				
			||||||
				EA5A02E51614017E003B3E41 /* WordApiTest.m */,
 | 
					 | 
				
			||||||
				EA8DAC3016149DA600817A86 /* AccountApiTest.h */,
 | 
					 | 
				
			||||||
				EA8DAC3116149DA600817A86 /* AccountApiTest.m */,
 | 
					 | 
				
			||||||
				EA8DAC3316149E4B00817A86 /* WordsApiTest.h */,
 | 
					 | 
				
			||||||
				EA8DAC3416149E4B00817A86 /* WordsApiTest.m */,
 | 
					 | 
				
			||||||
				EA8DAC361614D15F00817A86 /* WordListApiTest.h */,
 | 
					 | 
				
			||||||
				EA8DAC371614D15F00817A86 /* WordListApiTest.m */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = tests;
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA5A02CC1613AC6B003B3E41 /* Generated Code */ = {
 | 
					 | 
				
			||||||
			isa = PBXGroup;
 | 
					 | 
				
			||||||
			children = (
 | 
					 | 
				
			||||||
				EA5A02531613AC66003B3E41 /* NIKAccountApi.h */,
 | 
					 | 
				
			||||||
				EA5A02541613AC66003B3E41 /* NIKAccountApi.m */,
 | 
					 | 
				
			||||||
				EA5A02551613AC66003B3E41 /* NIKApiInvoker.h */,
 | 
					 | 
				
			||||||
				EA5A02561613AC66003B3E41 /* NIKApiInvoker.m */,
 | 
					 | 
				
			||||||
				EA5A02571613AC66003B3E41 /* NIKDate.h */,
 | 
					 | 
				
			||||||
				EA5A02581613AC66003B3E41 /* NIKDate.m */,
 | 
					 | 
				
			||||||
				EA5A02591613AC66003B3E41 /* NIKSwaggerObject.h */,
 | 
					 | 
				
			||||||
				EA5A025A1613AC66003B3E41 /* NIKSwaggerObject.m */,
 | 
					 | 
				
			||||||
				EA5A025B1613AC66003B3E41 /* NIKWordApi.h */,
 | 
					 | 
				
			||||||
				EA5A025C1613AC66003B3E41 /* NIKWordApi.m */,
 | 
					 | 
				
			||||||
				EA5A025D1613AC66003B3E41 /* NIKWordListApi.h */,
 | 
					 | 
				
			||||||
				EA5A025E1613AC66003B3E41 /* NIKWordListApi.m */,
 | 
					 | 
				
			||||||
				EA5A025F1613AC66003B3E41 /* NIKWordListsApi.h */,
 | 
					 | 
				
			||||||
				EA5A02601613AC66003B3E41 /* NIKWordListsApi.m */,
 | 
					 | 
				
			||||||
				EA5A02611613AC66003B3E41 /* NIKWordsApi.h */,
 | 
					 | 
				
			||||||
				EA5A02621613AC66003B3E41 /* NIKWordsApi.m */,
 | 
					 | 
				
			||||||
				EA5A02631613AC66003B3E41 /* NIKFrequency.h */,
 | 
					 | 
				
			||||||
				EA5A02641613AC66003B3E41 /* NIKFrequency.m */,
 | 
					 | 
				
			||||||
				EA5A02651613AC66003B3E41 /* NIKSentence.h */,
 | 
					 | 
				
			||||||
				EA5A02661613AC66003B3E41 /* NIKSentence.m */,
 | 
					 | 
				
			||||||
				EA5A02671613AC66003B3E41 /* NIKSimpleExample.h */,
 | 
					 | 
				
			||||||
				EA5A02681613AC66003B3E41 /* NIKSimpleExample.m */,
 | 
					 | 
				
			||||||
				EA5A02691613AC66003B3E41 /* NIKSyllable.h */,
 | 
					 | 
				
			||||||
				EA5A026A1613AC66003B3E41 /* NIKSyllable.m */,
 | 
					 | 
				
			||||||
				EA5A026B1613AC66003B3E41 /* NIKTextPron.m */,
 | 
					 | 
				
			||||||
				EA5A026C1613AC66003B3E41 /* NIKApiTokenStatus.h */,
 | 
					 | 
				
			||||||
				EA5A026D1613AC66003B3E41 /* NIKApiTokenStatus.m */,
 | 
					 | 
				
			||||||
				EA5A026E1613AC66003B3E41 /* NIKAudioFile.h */,
 | 
					 | 
				
			||||||
				EA5A026F1613AC66003B3E41 /* NIKAudioFile.m */,
 | 
					 | 
				
			||||||
				EA5A02701613AC66003B3E41 /* NIKAuthenticationToken.h */,
 | 
					 | 
				
			||||||
				EA5A02711613AC66003B3E41 /* NIKAuthenticationToken.m */,
 | 
					 | 
				
			||||||
				EA5A02721613AC66003B3E41 /* NIKBigram.h */,
 | 
					 | 
				
			||||||
				EA5A02731613AC66003B3E41 /* NIKBigram.m */,
 | 
					 | 
				
			||||||
				EA5A02741613AC66003B3E41 /* NIKCitation.h */,
 | 
					 | 
				
			||||||
				EA5A02751613AC66003B3E41 /* NIKCitation.m */,
 | 
					 | 
				
			||||||
				EA5A02761613AC66003B3E41 /* NIKContentProvider.h */,
 | 
					 | 
				
			||||||
				EA5A02771613AC66003B3E41 /* NIKContentProvider.m */,
 | 
					 | 
				
			||||||
				EA5A02781613AC66003B3E41 /* NIKDefinition.h */,
 | 
					 | 
				
			||||||
				EA5A02791613AC66003B3E41 /* NIKDefinition.m */,
 | 
					 | 
				
			||||||
				EA5A027A1613AC66003B3E41 /* NIKDefinitionSearchResults.h */,
 | 
					 | 
				
			||||||
				EA5A027B1613AC66003B3E41 /* NIKDefinitionSearchResults.m */,
 | 
					 | 
				
			||||||
				EA5A027C1613AC66003B3E41 /* NIKExample.h */,
 | 
					 | 
				
			||||||
				EA5A027D1613AC66003B3E41 /* NIKExample.m */,
 | 
					 | 
				
			||||||
				EA5A027E1613AC66003B3E41 /* NIKExampleSearchResults.h */,
 | 
					 | 
				
			||||||
				EA5A027F1613AC66003B3E41 /* NIKExampleSearchResults.m */,
 | 
					 | 
				
			||||||
				EA5A02801613AC66003B3E41 /* NIKExampleUsage.h */,
 | 
					 | 
				
			||||||
				EA5A02811613AC66003B3E41 /* NIKExampleUsage.m */,
 | 
					 | 
				
			||||||
				EA5A02821613AC66003B3E41 /* NIKFacet.h */,
 | 
					 | 
				
			||||||
				EA5A02831613AC66003B3E41 /* NIKFacet.m */,
 | 
					 | 
				
			||||||
				EA5A02841613AC66003B3E41 /* NIKFacetValue.h */,
 | 
					 | 
				
			||||||
				EA5A02851613AC66003B3E41 /* NIKFacetValue.m */,
 | 
					 | 
				
			||||||
				EA5A02861613AC66003B3E41 /* NIKFrequencySummary.h */,
 | 
					 | 
				
			||||||
				EA5A02871613AC66003B3E41 /* NIKFrequencySummary.m */,
 | 
					 | 
				
			||||||
				EA5A02881613AC66003B3E41 /* NIKLabel.h */,
 | 
					 | 
				
			||||||
				EA5A02891613AC66003B3E41 /* NIKLabel.m */,
 | 
					 | 
				
			||||||
				EA5A028A1613AC66003B3E41 /* NIKNote.h */,
 | 
					 | 
				
			||||||
				EA5A028B1613AC66003B3E41 /* NIKNote.m */,
 | 
					 | 
				
			||||||
				EA5A028C1613AC66003B3E41 /* NIKRelated.h */,
 | 
					 | 
				
			||||||
				EA5A028D1613AC66003B3E41 /* NIKRelated.m */,
 | 
					 | 
				
			||||||
				EA5A028E1613AC66003B3E41 /* NIKScoredWord.h */,
 | 
					 | 
				
			||||||
				EA5A028F1613AC66003B3E41 /* NIKScoredWord.m */,
 | 
					 | 
				
			||||||
				EA5A02901613AC66003B3E41 /* NIKSimpleDefinition.h */,
 | 
					 | 
				
			||||||
				EA5A02911613AC66003B3E41 /* NIKSimpleDefinition.m */,
 | 
					 | 
				
			||||||
				EA5A02921613AC66003B3E41 /* NIKStringValue.h */,
 | 
					 | 
				
			||||||
				EA5A02931613AC66003B3E41 /* NIKStringValue.m */,
 | 
					 | 
				
			||||||
				EA5A02941613AC66003B3E41 /* NIKTextPron.h */,
 | 
					 | 
				
			||||||
				EA5A02951613AC66003B3E41 /* NIKUser.h */,
 | 
					 | 
				
			||||||
				EA5A02961613AC66003B3E41 /* NIKUser.m */,
 | 
					 | 
				
			||||||
				EA5A02971613AC66003B3E41 /* NIKWordList.h */,
 | 
					 | 
				
			||||||
				EA5A02981613AC66003B3E41 /* NIKWordList.m */,
 | 
					 | 
				
			||||||
				EA5A02991613AC66003B3E41 /* NIKWordListWord.h */,
 | 
					 | 
				
			||||||
				EA5A029A1613AC66003B3E41 /* NIKWordListWord.m */,
 | 
					 | 
				
			||||||
				EA5A029B1613AC66003B3E41 /* NIKWordObject.h */,
 | 
					 | 
				
			||||||
				EA5A029C1613AC66003B3E41 /* NIKWordObject.m */,
 | 
					 | 
				
			||||||
				EA5A029D1613AC66003B3E41 /* NIKWordOfTheDay.h */,
 | 
					 | 
				
			||||||
				EA5A029E1613AC66003B3E41 /* NIKWordOfTheDay.m */,
 | 
					 | 
				
			||||||
				EA5A029F1613AC66003B3E41 /* NIKWordSearchResult.h */,
 | 
					 | 
				
			||||||
				EA5A02A01613AC66003B3E41 /* NIKWordSearchResult.m */,
 | 
					 | 
				
			||||||
				EA5A02A11613AC66003B3E41 /* NIKWordSearchResults.h */,
 | 
					 | 
				
			||||||
				EA5A02A21613AC66003B3E41 /* NIKWordSearchResults.m */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = "Generated Code";
 | 
					 | 
				
			||||||
			sourceTree = "<group>";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXGroup section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXNativeTarget section */
 | 
					 | 
				
			||||||
		EA224CFC1613ABE700129740 /* WordnikApiClient */ = {
 | 
					 | 
				
			||||||
			isa = PBXNativeTarget;
 | 
					 | 
				
			||||||
			buildConfigurationList = EA224D0C1613ABE700129740 /* Build configuration list for PBXNativeTarget "WordnikApiClient" */;
 | 
					 | 
				
			||||||
			buildPhases = (
 | 
					 | 
				
			||||||
				EA224CF91613ABE700129740 /* Sources */,
 | 
					 | 
				
			||||||
				EA224CFA1613ABE700129740 /* Frameworks */,
 | 
					 | 
				
			||||||
				EA224CFB1613ABE700129740 /* CopyFiles */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			buildRules = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			dependencies = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = WordnikApiClient;
 | 
					 | 
				
			||||||
			productName = WordnikApiClient;
 | 
					 | 
				
			||||||
			productReference = EA224CFD1613ABE700129740 /* WordnikApiClient */;
 | 
					 | 
				
			||||||
			productType = "com.apple.product-type.tool";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D131613ABFA00129740 /* WordnikApiClientTests */ = {
 | 
					 | 
				
			||||||
			isa = PBXNativeTarget;
 | 
					 | 
				
			||||||
			buildConfigurationList = EA224D271613ABFA00129740 /* Build configuration list for PBXNativeTarget "WordnikApiClientTests" */;
 | 
					 | 
				
			||||||
			buildPhases = (
 | 
					 | 
				
			||||||
				EA224D0F1613ABFA00129740 /* Sources */,
 | 
					 | 
				
			||||||
				EA224D101613ABFA00129740 /* Frameworks */,
 | 
					 | 
				
			||||||
				EA224D111613ABFA00129740 /* Resources */,
 | 
					 | 
				
			||||||
				EA224D121613ABFA00129740 /* ShellScript */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			buildRules = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			dependencies = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			name = WordnikApiClientTests;
 | 
					 | 
				
			||||||
			productName = WordnikApiClientTests;
 | 
					 | 
				
			||||||
			productReference = EA224D141613ABFA00129740 /* WordnikApiClientTests.octest */;
 | 
					 | 
				
			||||||
			productType = "com.apple.product-type.bundle";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXNativeTarget section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXProject section */
 | 
					 | 
				
			||||||
		EA224CF41613ABE700129740 /* Project object */ = {
 | 
					 | 
				
			||||||
			isa = PBXProject;
 | 
					 | 
				
			||||||
			attributes = {
 | 
					 | 
				
			||||||
				LastUpgradeCheck = 0450;
 | 
					 | 
				
			||||||
				ORGANIZATIONNAME = "Tony Tam";
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			buildConfigurationList = EA224CF71613ABE700129740 /* Build configuration list for PBXProject "WordnikApiClient" */;
 | 
					 | 
				
			||||||
			compatibilityVersion = "Xcode 3.2";
 | 
					 | 
				
			||||||
			developmentRegion = English;
 | 
					 | 
				
			||||||
			hasScannedForEncodings = 0;
 | 
					 | 
				
			||||||
			knownRegions = (
 | 
					 | 
				
			||||||
				en,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			mainGroup = EA224CF21613ABE700129740;
 | 
					 | 
				
			||||||
			productRefGroup = EA224CFE1613ABE700129740 /* Products */;
 | 
					 | 
				
			||||||
			projectDirPath = "";
 | 
					 | 
				
			||||||
			projectRoot = "";
 | 
					 | 
				
			||||||
			targets = (
 | 
					 | 
				
			||||||
				EA224CFC1613ABE700129740 /* WordnikApiClient */,
 | 
					 | 
				
			||||||
				EA224D131613ABFA00129740 /* WordnikApiClientTests */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXProject section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXResourcesBuildPhase section */
 | 
					 | 
				
			||||||
		EA224D111613ABFA00129740 /* Resources */ = {
 | 
					 | 
				
			||||||
			isa = PBXResourcesBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXResourcesBuildPhase section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXShellScriptBuildPhase section */
 | 
					 | 
				
			||||||
		EA224D121613ABFA00129740 /* ShellScript */ = {
 | 
					 | 
				
			||||||
			isa = PBXShellScriptBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			inputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			outputPaths = (
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
			shellPath = /bin/sh;
 | 
					 | 
				
			||||||
			shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n";
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXShellScriptBuildPhase section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin PBXSourcesBuildPhase section */
 | 
					 | 
				
			||||||
		EA224CF91613ABE700129740 /* Sources */ = {
 | 
					 | 
				
			||||||
			isa = PBXSourcesBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
				EA224D051613ABE700129740 /* main.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A31613AC66003B3E41 /* NIKAccountApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A41613AC66003B3E41 /* NIKApiInvoker.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A51613AC66003B3E41 /* NIKDate.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A61613AC66003B3E41 /* NIKSwaggerObject.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A71613AC66003B3E41 /* NIKWordApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A81613AC66003B3E41 /* NIKWordListApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02A91613AC66003B3E41 /* NIKWordListsApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AA1613AC66003B3E41 /* NIKWordsApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AB1613AC66003B3E41 /* NIKFrequency.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AC1613AC66003B3E41 /* NIKSentence.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AD1613AC66003B3E41 /* NIKSimpleExample.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AE1613AC66003B3E41 /* NIKSyllable.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02AF1613AC66003B3E41 /* NIKTextPron.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B01613AC66003B3E41 /* NIKApiTokenStatus.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B11613AC66003B3E41 /* NIKAudioFile.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B21613AC66003B3E41 /* NIKAuthenticationToken.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B31613AC66003B3E41 /* NIKBigram.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B41613AC66003B3E41 /* NIKCitation.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B51613AC66003B3E41 /* NIKContentProvider.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B61613AC66003B3E41 /* NIKDefinition.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B71613AC66003B3E41 /* NIKDefinitionSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B81613AC66003B3E41 /* NIKExample.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02B91613AC66003B3E41 /* NIKExampleSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BA1613AC66003B3E41 /* NIKExampleUsage.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BB1613AC66003B3E41 /* NIKFacet.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BC1613AC66003B3E41 /* NIKFacetValue.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BD1613AC66003B3E41 /* NIKFrequencySummary.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BE1613AC66003B3E41 /* NIKLabel.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02BF1613AC66003B3E41 /* NIKNote.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C01613AC66003B3E41 /* NIKRelated.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C11613AC66003B3E41 /* NIKScoredWord.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C21613AC66003B3E41 /* NIKSimpleDefinition.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C31613AC66003B3E41 /* NIKStringValue.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C41613AC66003B3E41 /* NIKUser.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C51613AC66003B3E41 /* NIKWordList.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C61613AC66003B3E41 /* NIKWordListWord.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C71613AC66003B3E41 /* NIKWordObject.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C81613AC66003B3E41 /* NIKWordOfTheDay.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02C91613AC66003B3E41 /* NIKWordSearchResult.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02CA1613AC66003B3E41 /* NIKWordSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D0F1613ABFA00129740 /* Sources */ = {
 | 
					 | 
				
			||||||
			isa = PBXSourcesBuildPhase;
 | 
					 | 
				
			||||||
			buildActionMask = 2147483647;
 | 
					 | 
				
			||||||
			files = (
 | 
					 | 
				
			||||||
				EA5A02EB161403F4003B3E41 /* NIKAccountApi.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02EC161403F4003B3E41 /* NIKAccountApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02ED161403F4003B3E41 /* NIKApiInvoker.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02EE161403F4003B3E41 /* NIKApiInvoker.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02EF161403F4003B3E41 /* NIKDate.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F0161403F4003B3E41 /* NIKDate.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F1161403F4003B3E41 /* NIKSwaggerObject.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F2161403F4003B3E41 /* NIKSwaggerObject.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F3161403F4003B3E41 /* NIKWordApi.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F4161403F4003B3E41 /* NIKWordApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F5161403F4003B3E41 /* NIKWordListApi.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F6161403F4003B3E41 /* NIKWordListApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F7161403F4003B3E41 /* NIKWordListsApi.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F8161403F4003B3E41 /* NIKWordListsApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02F9161403F4003B3E41 /* NIKWordsApi.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FA161403F4003B3E41 /* NIKWordsApi.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FB161403F4003B3E41 /* NIKFrequency.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FC161403F4003B3E41 /* NIKFrequency.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FD161403F4003B3E41 /* NIKSentence.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FE161403F4003B3E41 /* NIKSentence.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02FF161403F4003B3E41 /* NIKSimpleExample.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0300161403F4003B3E41 /* NIKSimpleExample.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0301161403F4003B3E41 /* NIKSyllable.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0302161403F4003B3E41 /* NIKSyllable.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0303161403F4003B3E41 /* NIKTextPron.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0304161403F4003B3E41 /* NIKApiTokenStatus.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0305161403F4003B3E41 /* NIKApiTokenStatus.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0306161403F4003B3E41 /* NIKAudioFile.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0307161403F4003B3E41 /* NIKAudioFile.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0308161403F4003B3E41 /* NIKAuthenticationToken.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0309161403F4003B3E41 /* NIKAuthenticationToken.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A030A161403F4003B3E41 /* NIKBigram.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A030B161403F4003B3E41 /* NIKBigram.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A030C161403F4003B3E41 /* NIKCitation.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A030D161403F4003B3E41 /* NIKCitation.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A030E161403F4003B3E41 /* NIKContentProvider.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A030F161403F4003B3E41 /* NIKContentProvider.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0310161403F4003B3E41 /* NIKDefinition.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0311161403F4003B3E41 /* NIKDefinition.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0312161403F4003B3E41 /* NIKDefinitionSearchResults.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0313161403F4003B3E41 /* NIKDefinitionSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0314161403F4003B3E41 /* NIKExample.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0315161403F4003B3E41 /* NIKExample.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0316161403F4003B3E41 /* NIKExampleSearchResults.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0317161403F4003B3E41 /* NIKExampleSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0318161403F4003B3E41 /* NIKExampleUsage.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0319161403F4003B3E41 /* NIKExampleUsage.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A031A161403F4003B3E41 /* NIKFacet.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A031B161403F4003B3E41 /* NIKFacet.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A031C161403F4003B3E41 /* NIKFacetValue.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A031D161403F4003B3E41 /* NIKFacetValue.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A031E161403F4003B3E41 /* NIKFrequencySummary.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A031F161403F4003B3E41 /* NIKFrequencySummary.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0320161403F4003B3E41 /* NIKLabel.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0321161403F4003B3E41 /* NIKLabel.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0322161403F4003B3E41 /* NIKNote.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0323161403F4003B3E41 /* NIKNote.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0324161403F4003B3E41 /* NIKRelated.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0325161403F4003B3E41 /* NIKRelated.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0326161403F4003B3E41 /* NIKScoredWord.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0327161403F4003B3E41 /* NIKScoredWord.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0328161403F4003B3E41 /* NIKSimpleDefinition.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0329161403F4003B3E41 /* NIKSimpleDefinition.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A032A161403F4003B3E41 /* NIKStringValue.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A032B161403F4003B3E41 /* NIKStringValue.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A032C161403F4003B3E41 /* NIKTextPron.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A032D161403F4003B3E41 /* NIKUser.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A032E161403F4003B3E41 /* NIKUser.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A032F161403F4003B3E41 /* NIKWordList.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0330161403F4003B3E41 /* NIKWordList.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0331161403F4003B3E41 /* NIKWordListWord.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0332161403F4003B3E41 /* NIKWordListWord.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0333161403F4003B3E41 /* NIKWordObject.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0334161403F4003B3E41 /* NIKWordObject.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0335161403F4003B3E41 /* NIKWordOfTheDay.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0336161403F4003B3E41 /* NIKWordOfTheDay.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0337161403F4003B3E41 /* NIKWordSearchResult.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A0338161403F4003B3E41 /* NIKWordSearchResult.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A0339161403F4003B3E41 /* NIKWordSearchResults.h in Sources */,
 | 
					 | 
				
			||||||
				EA5A033A161403F4003B3E41 /* NIKWordSearchResults.m in Sources */,
 | 
					 | 
				
			||||||
				EA5A02E61614017E003B3E41 /* WordApiTest.m in Sources */,
 | 
					 | 
				
			||||||
				EA8DAC3216149DA600817A86 /* AccountApiTest.m in Sources */,
 | 
					 | 
				
			||||||
				EA8DAC3516149E4B00817A86 /* WordsApiTest.m in Sources */,
 | 
					 | 
				
			||||||
				EA8DAC381614D15F00817A86 /* WordListApiTest.m in Sources */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			runOnlyForDeploymentPostprocessing = 0;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End PBXSourcesBuildPhase section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin XCBuildConfiguration section */
 | 
					 | 
				
			||||||
		EA224D0A1613ABE700129740 /* Debug */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
					 | 
				
			||||||
				ARCHS = "$(ARCHS_STANDARD_64_BIT)";
 | 
					 | 
				
			||||||
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
 | 
					 | 
				
			||||||
				CLANG_CXX_LIBRARY = "libc++";
 | 
					 | 
				
			||||||
				CLANG_ENABLE_OBJC_ARC = YES;
 | 
					 | 
				
			||||||
				CLANG_WARN_EMPTY_BODY = YES;
 | 
					 | 
				
			||||||
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
					 | 
				
			||||||
				COPY_PHASE_STRIP = NO;
 | 
					 | 
				
			||||||
				GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
					 | 
				
			||||||
				GCC_DYNAMIC_NO_PIC = NO;
 | 
					 | 
				
			||||||
				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
 | 
					 | 
				
			||||||
				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;
 | 
					 | 
				
			||||||
				GCC_WARN_UNINITIALIZED_AUTOS = YES;
 | 
					 | 
				
			||||||
				GCC_WARN_UNUSED_VARIABLE = YES;
 | 
					 | 
				
			||||||
				MACOSX_DEPLOYMENT_TARGET = 10.8;
 | 
					 | 
				
			||||||
				ONLY_ACTIVE_ARCH = YES;
 | 
					 | 
				
			||||||
				SDKROOT = macosx;
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Debug;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D0B1613ABE700129740 /* Release */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				ALWAYS_SEARCH_USER_PATHS = NO;
 | 
					 | 
				
			||||||
				ARCHS = "$(ARCHS_STANDARD_64_BIT)";
 | 
					 | 
				
			||||||
				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
 | 
					 | 
				
			||||||
				CLANG_CXX_LIBRARY = "libc++";
 | 
					 | 
				
			||||||
				CLANG_ENABLE_OBJC_ARC = YES;
 | 
					 | 
				
			||||||
				CLANG_WARN_EMPTY_BODY = YES;
 | 
					 | 
				
			||||||
				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
 | 
					 | 
				
			||||||
				COPY_PHASE_STRIP = YES;
 | 
					 | 
				
			||||||
				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
 | 
					 | 
				
			||||||
				GCC_C_LANGUAGE_STANDARD = gnu99;
 | 
					 | 
				
			||||||
				GCC_ENABLE_OBJC_EXCEPTIONS = YES;
 | 
					 | 
				
			||||||
				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
 | 
					 | 
				
			||||||
				GCC_WARN_ABOUT_RETURN_TYPE = YES;
 | 
					 | 
				
			||||||
				GCC_WARN_UNINITIALIZED_AUTOS = YES;
 | 
					 | 
				
			||||||
				GCC_WARN_UNUSED_VARIABLE = YES;
 | 
					 | 
				
			||||||
				MACOSX_DEPLOYMENT_TARGET = 10.8;
 | 
					 | 
				
			||||||
				SDKROOT = macosx;
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D0D1613ABE700129740 /* Debug */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 | 
					 | 
				
			||||||
				GCC_PREFIX_HEADER = "WordnikApiClient/WordnikApiClient-Prefix.pch";
 | 
					 | 
				
			||||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Debug;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D0E1613ABE700129740 /* Release */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 | 
					 | 
				
			||||||
				GCC_PREFIX_HEADER = "WordnikApiClient/WordnikApiClient-Prefix.pch";
 | 
					 | 
				
			||||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D281613ABFA00129740 /* Debug */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				COMBINE_HIDPI_IMAGES = YES;
 | 
					 | 
				
			||||||
				FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
 | 
					 | 
				
			||||||
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 | 
					 | 
				
			||||||
				GCC_PREFIX_HEADER = "../tests/WordnikApiClientTests-Prefix.pch";
 | 
					 | 
				
			||||||
				INFOPLIST_FILE = "../tests/WordnikApiClientTests-Info.plist";
 | 
					 | 
				
			||||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
					 | 
				
			||||||
				WRAPPER_EXTENSION = octest;
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Debug;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D291613ABFA00129740 /* Release */ = {
 | 
					 | 
				
			||||||
			isa = XCBuildConfiguration;
 | 
					 | 
				
			||||||
			buildSettings = {
 | 
					 | 
				
			||||||
				COMBINE_HIDPI_IMAGES = YES;
 | 
					 | 
				
			||||||
				FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
 | 
					 | 
				
			||||||
				GCC_PRECOMPILE_PREFIX_HEADER = YES;
 | 
					 | 
				
			||||||
				GCC_PREFIX_HEADER = "../tests/WordnikApiClientTests-Prefix.pch";
 | 
					 | 
				
			||||||
				INFOPLIST_FILE = "../tests/WordnikApiClientTests-Info.plist";
 | 
					 | 
				
			||||||
				PRODUCT_NAME = "$(TARGET_NAME)";
 | 
					 | 
				
			||||||
				WRAPPER_EXTENSION = octest;
 | 
					 | 
				
			||||||
			};
 | 
					 | 
				
			||||||
			name = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End XCBuildConfiguration section */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Begin XCConfigurationList section */
 | 
					 | 
				
			||||||
		EA224CF71613ABE700129740 /* Build configuration list for PBXProject "WordnikApiClient" */ = {
 | 
					 | 
				
			||||||
			isa = XCConfigurationList;
 | 
					 | 
				
			||||||
			buildConfigurations = (
 | 
					 | 
				
			||||||
				EA224D0A1613ABE700129740 /* Debug */,
 | 
					 | 
				
			||||||
				EA224D0B1613ABE700129740 /* Release */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			defaultConfigurationIsVisible = 0;
 | 
					 | 
				
			||||||
			defaultConfigurationName = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D0C1613ABE700129740 /* Build configuration list for PBXNativeTarget "WordnikApiClient" */ = {
 | 
					 | 
				
			||||||
			isa = XCConfigurationList;
 | 
					 | 
				
			||||||
			buildConfigurations = (
 | 
					 | 
				
			||||||
				EA224D0D1613ABE700129740 /* Debug */,
 | 
					 | 
				
			||||||
				EA224D0E1613ABE700129740 /* Release */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			defaultConfigurationIsVisible = 0;
 | 
					 | 
				
			||||||
			defaultConfigurationName = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
		EA224D271613ABFA00129740 /* Build configuration list for PBXNativeTarget "WordnikApiClientTests" */ = {
 | 
					 | 
				
			||||||
			isa = XCConfigurationList;
 | 
					 | 
				
			||||||
			buildConfigurations = (
 | 
					 | 
				
			||||||
				EA224D281613ABFA00129740 /* Debug */,
 | 
					 | 
				
			||||||
				EA224D291613ABFA00129740 /* Release */,
 | 
					 | 
				
			||||||
			);
 | 
					 | 
				
			||||||
			defaultConfigurationIsVisible = 0;
 | 
					 | 
				
			||||||
			defaultConfigurationName = Release;
 | 
					 | 
				
			||||||
		};
 | 
					 | 
				
			||||||
/* End XCConfigurationList section */
 | 
					 | 
				
			||||||
	};
 | 
					 | 
				
			||||||
	rootObject = EA224CF41613ABE700129740 /* Project object */;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,7 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<Workspace
 | 
					 | 
				
			||||||
   version = "1.0">
 | 
					 | 
				
			||||||
   <FileRef
 | 
					 | 
				
			||||||
      location = "self:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
   </FileRef>
 | 
					 | 
				
			||||||
</Workspace>
 | 
					 | 
				
			||||||
@ -1,72 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<Bucket
 | 
					 | 
				
			||||||
   type = "1"
 | 
					 | 
				
			||||||
   version = "1.0">
 | 
					 | 
				
			||||||
   <FileBreakpoints>
 | 
					 | 
				
			||||||
      <FileBreakpoint
 | 
					 | 
				
			||||||
         shouldBeEnabled = "No"
 | 
					 | 
				
			||||||
         ignoreCount = "0"
 | 
					 | 
				
			||||||
         continueAfterRunningActions = "No"
 | 
					 | 
				
			||||||
         filePath = "../client/NIKWordApi.m"
 | 
					 | 
				
			||||||
         timestampString = "370399943.538529"
 | 
					 | 
				
			||||||
         startingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         endingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         startingLineNumber = "517"
 | 
					 | 
				
			||||||
         endingLineNumber = "517"
 | 
					 | 
				
			||||||
         landmarkName = "-getEtymologiesWithCompletionBlock:useCanonical:completionHandler:"
 | 
					 | 
				
			||||||
         landmarkType = "5">
 | 
					 | 
				
			||||||
      </FileBreakpoint>
 | 
					 | 
				
			||||||
      <FileBreakpoint
 | 
					 | 
				
			||||||
         shouldBeEnabled = "No"
 | 
					 | 
				
			||||||
         ignoreCount = "0"
 | 
					 | 
				
			||||||
         continueAfterRunningActions = "No"
 | 
					 | 
				
			||||||
         filePath = "../client/NIKWordApi.m"
 | 
					 | 
				
			||||||
         timestampString = "370399951.513734"
 | 
					 | 
				
			||||||
         startingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         endingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         startingLineNumber = "516"
 | 
					 | 
				
			||||||
         endingLineNumber = "516"
 | 
					 | 
				
			||||||
         landmarkName = "-getEtymologiesWithCompletionBlock:useCanonical:completionHandler:"
 | 
					 | 
				
			||||||
         landmarkType = "5">
 | 
					 | 
				
			||||||
      </FileBreakpoint>
 | 
					 | 
				
			||||||
      <FileBreakpoint
 | 
					 | 
				
			||||||
         shouldBeEnabled = "No"
 | 
					 | 
				
			||||||
         ignoreCount = "0"
 | 
					 | 
				
			||||||
         continueAfterRunningActions = "No"
 | 
					 | 
				
			||||||
         filePath = "../client/NIKApiInvoker.m"
 | 
					 | 
				
			||||||
         timestampString = "370400006.775392"
 | 
					 | 
				
			||||||
         startingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         endingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         startingLineNumber = "75"
 | 
					 | 
				
			||||||
         endingLineNumber = "75"
 | 
					 | 
				
			||||||
         landmarkName = "-dictionaryWithCompletionBlock:method:queryParams:body:headerParams:completionHandler:"
 | 
					 | 
				
			||||||
         landmarkType = "5">
 | 
					 | 
				
			||||||
      </FileBreakpoint>
 | 
					 | 
				
			||||||
      <FileBreakpoint
 | 
					 | 
				
			||||||
         shouldBeEnabled = "No"
 | 
					 | 
				
			||||||
         ignoreCount = "0"
 | 
					 | 
				
			||||||
         continueAfterRunningActions = "No"
 | 
					 | 
				
			||||||
         filePath = "../client/NIKApiInvoker.m"
 | 
					 | 
				
			||||||
         timestampString = "370400198.266203"
 | 
					 | 
				
			||||||
         startingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         endingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         startingLineNumber = "99"
 | 
					 | 
				
			||||||
         endingLineNumber = "99"
 | 
					 | 
				
			||||||
         landmarkName = "-dictionaryWithCompletionBlock:method:queryParams:body:headerParams:completionHandler:"
 | 
					 | 
				
			||||||
         landmarkType = "5">
 | 
					 | 
				
			||||||
      </FileBreakpoint>
 | 
					 | 
				
			||||||
      <FileBreakpoint
 | 
					 | 
				
			||||||
         shouldBeEnabled = "No"
 | 
					 | 
				
			||||||
         ignoreCount = "0"
 | 
					 | 
				
			||||||
         continueAfterRunningActions = "No"
 | 
					 | 
				
			||||||
         filePath = "../client/NIKApiInvoker.m"
 | 
					 | 
				
			||||||
         timestampString = "370400308.782596"
 | 
					 | 
				
			||||||
         startingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         endingColumnNumber = "9223372036854775807"
 | 
					 | 
				
			||||||
         startingLineNumber = "72"
 | 
					 | 
				
			||||||
         endingLineNumber = "72"
 | 
					 | 
				
			||||||
         landmarkName = "-dictionaryWithCompletionBlock:method:queryParams:body:headerParams:completionHandler:"
 | 
					 | 
				
			||||||
         landmarkType = "5">
 | 
					 | 
				
			||||||
      </FileBreakpoint>
 | 
					 | 
				
			||||||
   </FileBreakpoints>
 | 
					 | 
				
			||||||
</Bucket>
 | 
					 | 
				
			||||||
@ -1,86 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<Scheme
 | 
					 | 
				
			||||||
   LastUpgradeVersion = "0450"
 | 
					 | 
				
			||||||
   version = "1.3">
 | 
					 | 
				
			||||||
   <BuildAction
 | 
					 | 
				
			||||||
      parallelizeBuildables = "YES"
 | 
					 | 
				
			||||||
      buildImplicitDependencies = "YES">
 | 
					 | 
				
			||||||
      <BuildActionEntries>
 | 
					 | 
				
			||||||
         <BuildActionEntry
 | 
					 | 
				
			||||||
            buildForTesting = "YES"
 | 
					 | 
				
			||||||
            buildForRunning = "YES"
 | 
					 | 
				
			||||||
            buildForProfiling = "YES"
 | 
					 | 
				
			||||||
            buildForArchiving = "YES"
 | 
					 | 
				
			||||||
            buildForAnalyzing = "YES">
 | 
					 | 
				
			||||||
            <BuildableReference
 | 
					 | 
				
			||||||
               BuildableIdentifier = "primary"
 | 
					 | 
				
			||||||
               BlueprintIdentifier = "EA224CFC1613ABE700129740"
 | 
					 | 
				
			||||||
               BuildableName = "WordnikApiClient"
 | 
					 | 
				
			||||||
               BlueprintName = "WordnikApiClient"
 | 
					 | 
				
			||||||
               ReferencedContainer = "container:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
            </BuildableReference>
 | 
					 | 
				
			||||||
         </BuildActionEntry>
 | 
					 | 
				
			||||||
      </BuildActionEntries>
 | 
					 | 
				
			||||||
   </BuildAction>
 | 
					 | 
				
			||||||
   <TestAction
 | 
					 | 
				
			||||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
					 | 
				
			||||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
					 | 
				
			||||||
      shouldUseLaunchSchemeArgsEnv = "YES"
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug">
 | 
					 | 
				
			||||||
      <Testables>
 | 
					 | 
				
			||||||
      </Testables>
 | 
					 | 
				
			||||||
      <MacroExpansion>
 | 
					 | 
				
			||||||
         <BuildableReference
 | 
					 | 
				
			||||||
            BuildableIdentifier = "primary"
 | 
					 | 
				
			||||||
            BlueprintIdentifier = "EA224CFC1613ABE700129740"
 | 
					 | 
				
			||||||
            BuildableName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            BlueprintName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            ReferencedContainer = "container:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
         </BuildableReference>
 | 
					 | 
				
			||||||
      </MacroExpansion>
 | 
					 | 
				
			||||||
   </TestAction>
 | 
					 | 
				
			||||||
   <LaunchAction
 | 
					 | 
				
			||||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
					 | 
				
			||||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
					 | 
				
			||||||
      launchStyle = "0"
 | 
					 | 
				
			||||||
      useCustomWorkingDirectory = "NO"
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug"
 | 
					 | 
				
			||||||
      ignoresPersistentStateOnLaunch = "NO"
 | 
					 | 
				
			||||||
      debugDocumentVersioning = "YES"
 | 
					 | 
				
			||||||
      allowLocationSimulation = "YES">
 | 
					 | 
				
			||||||
      <BuildableProductRunnable>
 | 
					 | 
				
			||||||
         <BuildableReference
 | 
					 | 
				
			||||||
            BuildableIdentifier = "primary"
 | 
					 | 
				
			||||||
            BlueprintIdentifier = "EA224CFC1613ABE700129740"
 | 
					 | 
				
			||||||
            BuildableName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            BlueprintName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            ReferencedContainer = "container:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
         </BuildableReference>
 | 
					 | 
				
			||||||
      </BuildableProductRunnable>
 | 
					 | 
				
			||||||
      <AdditionalOptions>
 | 
					 | 
				
			||||||
      </AdditionalOptions>
 | 
					 | 
				
			||||||
   </LaunchAction>
 | 
					 | 
				
			||||||
   <ProfileAction
 | 
					 | 
				
			||||||
      shouldUseLaunchSchemeArgsEnv = "YES"
 | 
					 | 
				
			||||||
      savedToolIdentifier = ""
 | 
					 | 
				
			||||||
      useCustomWorkingDirectory = "NO"
 | 
					 | 
				
			||||||
      buildConfiguration = "Release"
 | 
					 | 
				
			||||||
      debugDocumentVersioning = "YES">
 | 
					 | 
				
			||||||
      <BuildableProductRunnable>
 | 
					 | 
				
			||||||
         <BuildableReference
 | 
					 | 
				
			||||||
            BuildableIdentifier = "primary"
 | 
					 | 
				
			||||||
            BlueprintIdentifier = "EA224CFC1613ABE700129740"
 | 
					 | 
				
			||||||
            BuildableName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            BlueprintName = "WordnikApiClient"
 | 
					 | 
				
			||||||
            ReferencedContainer = "container:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
         </BuildableReference>
 | 
					 | 
				
			||||||
      </BuildableProductRunnable>
 | 
					 | 
				
			||||||
   </ProfileAction>
 | 
					 | 
				
			||||||
   <AnalyzeAction
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug">
 | 
					 | 
				
			||||||
   </AnalyzeAction>
 | 
					 | 
				
			||||||
   <ArchiveAction
 | 
					 | 
				
			||||||
      buildConfiguration = "Release"
 | 
					 | 
				
			||||||
      revealArchiveInOrganizer = "YES">
 | 
					 | 
				
			||||||
   </ArchiveAction>
 | 
					 | 
				
			||||||
</Scheme>
 | 
					 | 
				
			||||||
@ -1,53 +0,0 @@
 | 
				
			|||||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
					 | 
				
			||||||
<Scheme
 | 
					 | 
				
			||||||
   LastUpgradeVersion = "0450"
 | 
					 | 
				
			||||||
   version = "1.3">
 | 
					 | 
				
			||||||
   <BuildAction
 | 
					 | 
				
			||||||
      parallelizeBuildables = "YES"
 | 
					 | 
				
			||||||
      buildImplicitDependencies = "YES">
 | 
					 | 
				
			||||||
   </BuildAction>
 | 
					 | 
				
			||||||
   <TestAction
 | 
					 | 
				
			||||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
					 | 
				
			||||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
					 | 
				
			||||||
      shouldUseLaunchSchemeArgsEnv = "YES"
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug">
 | 
					 | 
				
			||||||
      <Testables>
 | 
					 | 
				
			||||||
         <TestableReference
 | 
					 | 
				
			||||||
            skipped = "NO">
 | 
					 | 
				
			||||||
            <BuildableReference
 | 
					 | 
				
			||||||
               BuildableIdentifier = "primary"
 | 
					 | 
				
			||||||
               BlueprintIdentifier = "EA224D131613ABFA00129740"
 | 
					 | 
				
			||||||
               BuildableName = "WordnikApiClientTests.octest"
 | 
					 | 
				
			||||||
               BlueprintName = "WordnikApiClientTests"
 | 
					 | 
				
			||||||
               ReferencedContainer = "container:WordnikApiClient.xcodeproj">
 | 
					 | 
				
			||||||
            </BuildableReference>
 | 
					 | 
				
			||||||
         </TestableReference>
 | 
					 | 
				
			||||||
      </Testables>
 | 
					 | 
				
			||||||
   </TestAction>
 | 
					 | 
				
			||||||
   <LaunchAction
 | 
					 | 
				
			||||||
      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
 | 
					 | 
				
			||||||
      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
 | 
					 | 
				
			||||||
      launchStyle = "0"
 | 
					 | 
				
			||||||
      useCustomWorkingDirectory = "NO"
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug"
 | 
					 | 
				
			||||||
      ignoresPersistentStateOnLaunch = "NO"
 | 
					 | 
				
			||||||
      debugDocumentVersioning = "YES"
 | 
					 | 
				
			||||||
      allowLocationSimulation = "YES">
 | 
					 | 
				
			||||||
      <AdditionalOptions>
 | 
					 | 
				
			||||||
      </AdditionalOptions>
 | 
					 | 
				
			||||||
   </LaunchAction>
 | 
					 | 
				
			||||||
   <ProfileAction
 | 
					 | 
				
			||||||
      shouldUseLaunchSchemeArgsEnv = "YES"
 | 
					 | 
				
			||||||
      savedToolIdentifier = ""
 | 
					 | 
				
			||||||
      useCustomWorkingDirectory = "NO"
 | 
					 | 
				
			||||||
      buildConfiguration = "Release"
 | 
					 | 
				
			||||||
      debugDocumentVersioning = "YES">
 | 
					 | 
				
			||||||
   </ProfileAction>
 | 
					 | 
				
			||||||
   <AnalyzeAction
 | 
					 | 
				
			||||||
      buildConfiguration = "Debug">
 | 
					 | 
				
			||||||
   </AnalyzeAction>
 | 
					 | 
				
			||||||
   <ArchiveAction
 | 
					 | 
				
			||||||
      buildConfiguration = "Release"
 | 
					 | 
				
			||||||
      revealArchiveInOrganizer = "YES">
 | 
					 | 
				
			||||||
   </ArchiveAction>
 | 
					 | 
				
			||||||
</Scheme>
 | 
					 | 
				
			||||||
@ -1,32 +0,0 @@
 | 
				
			|||||||
<?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>SchemeUserState</key>
 | 
					 | 
				
			||||||
	<dict>
 | 
					 | 
				
			||||||
		<key>WordnikApiClient.xcscheme</key>
 | 
					 | 
				
			||||||
		<dict>
 | 
					 | 
				
			||||||
			<key>orderHint</key>
 | 
					 | 
				
			||||||
			<integer>0</integer>
 | 
					 | 
				
			||||||
		</dict>
 | 
					 | 
				
			||||||
		<key>WordnikApiClientTests.xcscheme</key>
 | 
					 | 
				
			||||||
		<dict>
 | 
					 | 
				
			||||||
			<key>orderHint</key>
 | 
					 | 
				
			||||||
			<integer>1</integer>
 | 
					 | 
				
			||||||
		</dict>
 | 
					 | 
				
			||||||
	</dict>
 | 
					 | 
				
			||||||
	<key>SuppressBuildableAutocreation</key>
 | 
					 | 
				
			||||||
	<dict>
 | 
					 | 
				
			||||||
		<key>EA224CFC1613ABE700129740</key>
 | 
					 | 
				
			||||||
		<dict>
 | 
					 | 
				
			||||||
			<key>primary</key>
 | 
					 | 
				
			||||||
			<true/>
 | 
					 | 
				
			||||||
		</dict>
 | 
					 | 
				
			||||||
		<key>EA224D131613ABFA00129740</key>
 | 
					 | 
				
			||||||
		<dict>
 | 
					 | 
				
			||||||
			<key>primary</key>
 | 
					 | 
				
			||||||
			<true/>
 | 
					 | 
				
			||||||
		</dict>
 | 
					 | 
				
			||||||
	</dict>
 | 
					 | 
				
			||||||
</dict>
 | 
					 | 
				
			||||||
</plist>
 | 
					 | 
				
			||||||
@ -1,7 +0,0 @@
 | 
				
			|||||||
//
 | 
					 | 
				
			||||||
// Prefix header for all source files of the 'WordnikApiClient' target in the 'WordnikApiClient' project
 | 
					 | 
				
			||||||
//
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef __OBJC__
 | 
					 | 
				
			||||||
    #import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
@ -1,79 +0,0 @@
 | 
				
			|||||||
.\"Modified from man(1) of FreeBSD, the NetBSD mdoc.template, and mdoc.samples.
 | 
					 | 
				
			||||||
.\"See Also:
 | 
					 | 
				
			||||||
.\"man mdoc.samples for a complete listing of options
 | 
					 | 
				
			||||||
.\"man mdoc for the short list of editing options
 | 
					 | 
				
			||||||
.\"/usr/share/misc/mdoc.template
 | 
					 | 
				
			||||||
.Dd 9/26/12               \" DATE 
 | 
					 | 
				
			||||||
.Dt WordnikApiClient 1      \" Program name and manual section number 
 | 
					 | 
				
			||||||
.Os Darwin
 | 
					 | 
				
			||||||
.Sh NAME                 \" Section Header - required - don't modify 
 | 
					 | 
				
			||||||
.Nm WordnikApiClient,
 | 
					 | 
				
			||||||
.\" The following lines are read in generating the apropos(man -k) database. Use only key
 | 
					 | 
				
			||||||
.\" words here as the database is built based on the words here and in the .ND line. 
 | 
					 | 
				
			||||||
.Nm Other_name_for_same_program(),
 | 
					 | 
				
			||||||
.Nm Yet another name for the same program.
 | 
					 | 
				
			||||||
.\" Use .Nm macro to designate other names for the documented program.
 | 
					 | 
				
			||||||
.Nd This line parsed for whatis database.
 | 
					 | 
				
			||||||
.Sh SYNOPSIS             \" Section Header - required - don't modify
 | 
					 | 
				
			||||||
.Nm
 | 
					 | 
				
			||||||
.Op Fl abcd              \" [-abcd]
 | 
					 | 
				
			||||||
.Op Fl a Ar path         \" [-a path] 
 | 
					 | 
				
			||||||
.Op Ar file              \" [file]
 | 
					 | 
				
			||||||
.Op Ar                   \" [file ...]
 | 
					 | 
				
			||||||
.Ar arg0                 \" Underlined argument - use .Ar anywhere to underline
 | 
					 | 
				
			||||||
arg2 ...                 \" Arguments
 | 
					 | 
				
			||||||
.Sh DESCRIPTION          \" Section Header - required - don't modify
 | 
					 | 
				
			||||||
Use the .Nm macro to refer to your program throughout the man page like such:
 | 
					 | 
				
			||||||
.Nm
 | 
					 | 
				
			||||||
Underlining is accomplished with the .Ar macro like this:
 | 
					 | 
				
			||||||
.Ar underlined text .
 | 
					 | 
				
			||||||
.Pp                      \" Inserts a space
 | 
					 | 
				
			||||||
A list of items with descriptions:
 | 
					 | 
				
			||||||
.Bl -tag -width -indent  \" Begins a tagged list 
 | 
					 | 
				
			||||||
.It item a               \" Each item preceded by .It macro
 | 
					 | 
				
			||||||
Description of item a
 | 
					 | 
				
			||||||
.It item b
 | 
					 | 
				
			||||||
Description of item b
 | 
					 | 
				
			||||||
.El                      \" Ends the list
 | 
					 | 
				
			||||||
.Pp
 | 
					 | 
				
			||||||
A list of flags and their descriptions:
 | 
					 | 
				
			||||||
.Bl -tag -width -indent  \" Differs from above in tag removed 
 | 
					 | 
				
			||||||
.It Fl a                 \"-a flag as a list item
 | 
					 | 
				
			||||||
Description of -a flag
 | 
					 | 
				
			||||||
.It Fl b
 | 
					 | 
				
			||||||
Description of -b flag
 | 
					 | 
				
			||||||
.El                      \" Ends the list
 | 
					 | 
				
			||||||
.Pp
 | 
					 | 
				
			||||||
.\" .Sh ENVIRONMENT      \" May not be needed
 | 
					 | 
				
			||||||
.\" .Bl -tag -width "ENV_VAR_1" -indent \" ENV_VAR_1 is width of the string ENV_VAR_1
 | 
					 | 
				
			||||||
.\" .It Ev ENV_VAR_1
 | 
					 | 
				
			||||||
.\" Description of ENV_VAR_1
 | 
					 | 
				
			||||||
.\" .It Ev ENV_VAR_2
 | 
					 | 
				
			||||||
.\" Description of ENV_VAR_2
 | 
					 | 
				
			||||||
.\" .El                      
 | 
					 | 
				
			||||||
.Sh FILES                \" File used or created by the topic of the man page
 | 
					 | 
				
			||||||
.Bl -tag -width "/Users/joeuser/Library/really_long_file_name" -compact
 | 
					 | 
				
			||||||
.It Pa /usr/share/file_name
 | 
					 | 
				
			||||||
FILE_1 description
 | 
					 | 
				
			||||||
.It Pa /Users/joeuser/Library/really_long_file_name
 | 
					 | 
				
			||||||
FILE_2 description
 | 
					 | 
				
			||||||
.El                      \" Ends the list
 | 
					 | 
				
			||||||
.\" .Sh DIAGNOSTICS       \" May not be needed
 | 
					 | 
				
			||||||
.\" .Bl -diag
 | 
					 | 
				
			||||||
.\" .It Diagnostic Tag
 | 
					 | 
				
			||||||
.\" Diagnostic informtion here.
 | 
					 | 
				
			||||||
.\" .It Diagnostic Tag
 | 
					 | 
				
			||||||
.\" Diagnostic informtion here.
 | 
					 | 
				
			||||||
.\" .El
 | 
					 | 
				
			||||||
.Sh SEE ALSO 
 | 
					 | 
				
			||||||
.\" List links in ascending order by section, alphabetically within a section.
 | 
					 | 
				
			||||||
.\" Please do not reference files that do not exist without filing a bug report
 | 
					 | 
				
			||||||
.Xr a 1 , 
 | 
					 | 
				
			||||||
.Xr b 1 ,
 | 
					 | 
				
			||||||
.Xr c 1 ,
 | 
					 | 
				
			||||||
.Xr a 2 ,
 | 
					 | 
				
			||||||
.Xr b 2 ,
 | 
					 | 
				
			||||||
.Xr a 3 ,
 | 
					 | 
				
			||||||
.Xr b 3 
 | 
					 | 
				
			||||||
.\" .Sh BUGS              \" Document known, unremedied bugs 
 | 
					 | 
				
			||||||
.\" .Sh HISTORY           \" Document history if command behaves in a unique manner
 | 
					 | 
				
			||||||
@ -1,36 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "NIKWordApi.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main(int argc, const char * argv[]) {
 | 
					 | 
				
			||||||
    static bool done = false;
 | 
					 | 
				
			||||||
    @autoreleasepool {
 | 
					 | 
				
			||||||
        NIKWordApi * api = [[NIKWordApi alloc] init];
 | 
					 | 
				
			||||||
        [api addHeader:@"YOUR_API_KEY" forKey:@"api_key"];
 | 
					 | 
				
			||||||
        [api getDefinitionsWithCompletionBlock:@"Hello World"
 | 
					 | 
				
			||||||
                                  partOfSpeech:nil
 | 
					 | 
				
			||||||
                            sourceDictionaries:nil
 | 
					 | 
				
			||||||
                                         limit:nil
 | 
					 | 
				
			||||||
                                includeRelated:nil
 | 
					 | 
				
			||||||
                                  useCanonical:nil
 | 
					 | 
				
			||||||
                                   includeTags:nil
 | 
					 | 
				
			||||||
                             completionHandler:^(NSArray * definitions, NSError * error) {
 | 
					 | 
				
			||||||
            if(error){
 | 
					 | 
				
			||||||
                done = true;
 | 
					 | 
				
			||||||
                NSLog(@"failed to get results, did you forget to update the api_key?");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else if(!definitions) {
 | 
					 | 
				
			||||||
                done = true;
 | 
					 | 
				
			||||||
                NSLog(@"no results!  Did you put in an invalid word?");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                for(NIKDefinition * def in definitions ){
 | 
					 | 
				
			||||||
                    NSLog(@"%@", [def asDictionary]);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                done = true;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }];
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        while(!done){}
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return 0;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@ -1,2 +0,0 @@
 | 
				
			|||||||
/* Localized versions of Info.plist keys */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,69 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGUser.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
#import "SWGApiTokenStatus.h"
 | 
					 | 
				
			||||||
#import "SWGAuthenticationToken.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGAccountApi: NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize;
 | 
					 | 
				
			||||||
+(SWGAccountApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)basePath;
 | 
					 | 
				
			||||||
+(NSString*) getBasePath;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Authenticates a User
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param username A confirmed Wordnik username
 | 
					 | 
				
			||||||
 @param password The user's password
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) authenticateWithCompletionBlock :(NSString*) username 
 | 
					 | 
				
			||||||
        password:(NSString*) password 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGAuthenticationToken* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Authenticates a user
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param username A confirmed Wordnik username
 | 
					 | 
				
			||||||
 @param body The user's password
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) authenticatePostWithCompletionBlock :(NSString*) username 
 | 
					 | 
				
			||||||
        body:(NSString*) body 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGAuthenticationToken* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches WordList objects for the logged-in user.
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param auth_token auth_token of logged-in user
 | 
					 | 
				
			||||||
 @param skip Results to skip
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListsForLoggedInUserWithCompletionBlock :(NSString*) auth_token 
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns usage statistics for the API account.
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param api_key Wordnik authentication token
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getApiTokenStatusWithCompletionBlock :(NSString*) api_key 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGApiTokenStatus* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns the logged-in User
 | 
					 | 
				
			||||||
 Requires a valid auth_token to be set.
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getLoggedInUserWithCompletionBlock :(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGUser* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,318 +0,0 @@
 | 
				
			|||||||
#import "SWGAccountApi.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGUser.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
#import "SWGApiTokenStatus.h"
 | 
					 | 
				
			||||||
#import "SWGAuthenticationToken.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGAccountApi
 | 
					 | 
				
			||||||
static NSString * basePath = @"http://api.wordnik.com/v4";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGAccountApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key {
 | 
					 | 
				
			||||||
    static SWGAccountApi* singletonAPI = nil;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (singletonAPI == nil) {
 | 
					 | 
				
			||||||
        singletonAPI = [[SWGAccountApi alloc] init];
 | 
					 | 
				
			||||||
        [singletonAPI addHeader:headerValue forKey:key];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return singletonAPI;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)path {
 | 
					 | 
				
			||||||
    basePath = path;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) getBasePath {
 | 
					 | 
				
			||||||
    return basePath;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(SWGApiClient*) apiClient {
 | 
					 | 
				
			||||||
    return [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    [self apiClient];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
           forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize {
 | 
					 | 
				
			||||||
    return [SWGApiClient requestQueueSize];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) authenticateWithCompletionBlock:(NSString*) username
 | 
					 | 
				
			||||||
        password:(NSString*) password
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGAuthenticationToken* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/account.{format}/authenticate/{username}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"username", @"}"]] withString: [SWGApiClient escape:username]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(password != nil)
 | 
					 | 
				
			||||||
        queryParams[@"password"] = password;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(username == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(password == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGAuthenticationToken *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGAuthenticationToken alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) authenticatePostWithCompletionBlock:(NSString*) username
 | 
					 | 
				
			||||||
        body:(NSString*) body
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGAuthenticationToken* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/account.{format}/authenticate/{username}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"username", @"}"]] withString: [SWGApiClient escape:username]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(body != nil && [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
        NSMutableArray * objs = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
        for (id dict in (NSArray*)body) {
 | 
					 | 
				
			||||||
            if([dict respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
                [objs addObject:[(SWGObject*)dict asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else{
 | 
					 | 
				
			||||||
                [objs addObject:dict];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        bodyDictionary = objs;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
        bodyDictionary = [(SWGObject*)body asDictionary];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass:[NSString class]]) {
 | 
					 | 
				
			||||||
        // convert it to a dictionary
 | 
					 | 
				
			||||||
        NSError * error;
 | 
					 | 
				
			||||||
        NSString * str = (NSString*)body;
 | 
					 | 
				
			||||||
        NSDictionary *JSON =
 | 
					 | 
				
			||||||
            [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding]
 | 
					 | 
				
			||||||
                                            options:NSJSONReadingMutableContainers
 | 
					 | 
				
			||||||
                                              error:&error];
 | 
					 | 
				
			||||||
        bodyDictionary = JSON;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass: [SWGFile class]]) {
 | 
					 | 
				
			||||||
        requestContentType = @"form-data";
 | 
					 | 
				
			||||||
        bodyDictionary = body;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else{
 | 
					 | 
				
			||||||
        NSLog(@"don't know what to do with %@", body);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(username == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(body == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"POST" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGAuthenticationToken *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGAuthenticationToken alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListsForLoggedInUserWithCompletionBlock:(NSString*) auth_token
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/account.{format}/wordLists", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(skip != nil)
 | 
					 | 
				
			||||||
        queryParams[@"skip"] = skip;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGWordList* d = [[SWGWordList alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getApiTokenStatusWithCompletionBlock:(NSString*) api_key
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGApiTokenStatus* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/account.{format}/apiTokenStatus", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(api_key != nil)
 | 
					 | 
				
			||||||
        headerParams[@"api_key"] = api_key;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGApiTokenStatus *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGApiTokenStatus alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getLoggedInUserWithCompletionBlock:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGUser* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/account.{format}/user", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGUser *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGUser alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,64 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "AFHTTPClient.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGApiClient : AFHTTPClient
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic, assign) NSURLRequestCachePolicy cachePolicy;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) NSTimeInterval timeoutInterval;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) BOOL logRequests;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) BOOL logCacheHits;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) BOOL logServerResponses;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) BOOL logJSON;
 | 
					 | 
				
			||||||
@property(nonatomic, assign) BOOL logHTTP;
 | 
					 | 
				
			||||||
@property(nonatomic, readonly) NSOperationQueue* queue;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGApiClient *)sharedClientFromPool:(NSString *)baseUrl;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSOperationQueue*) sharedQueue;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)setLoggingEnabled:(bool) state;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)clearCache;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)setCacheEnabled:(BOOL) enabled;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(unsigned long)requestQueueSize;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setOfflineState:(BOOL) state;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(AFNetworkReachabilityStatus) getReachabilityStatus;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSNumber*) nextRequestId;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSNumber*) queueRequest;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) cancelRequest:(NSNumber*)requestId;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) escape:(id)unescaped;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setReachabilityChangeBlock:(void(^)(int))changeBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) configureCacheReachibilityForHost:(NSString*)host;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void)setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
                forKey:(NSString*) forKey;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*)  dictionary:(NSString*) path
 | 
					 | 
				
			||||||
                  method:(NSString*) method
 | 
					 | 
				
			||||||
             queryParams:(NSDictionary*) queryParams
 | 
					 | 
				
			||||||
                    body:(id) body
 | 
					 | 
				
			||||||
            headerParams:(NSDictionary*) headerParams
 | 
					 | 
				
			||||||
      requestContentType:(NSString*) requestContentType
 | 
					 | 
				
			||||||
     responseContentType:(NSString*) responseContentType
 | 
					 | 
				
			||||||
         completionBlock:(void (^)(NSDictionary*, NSError *))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*)  stringWithCompletionBlock:(NSString*) path
 | 
					 | 
				
			||||||
                                 method:(NSString*) method
 | 
					 | 
				
			||||||
                            queryParams:(NSDictionary*) queryParams
 | 
					 | 
				
			||||||
                                   body:(id) body
 | 
					 | 
				
			||||||
                           headerParams:(NSDictionary*) headerParams
 | 
					 | 
				
			||||||
                     requestContentType:(NSString*) requestContentType
 | 
					 | 
				
			||||||
                    responseContentType:(NSString*) responseContentType
 | 
					 | 
				
			||||||
                        completionBlock:(void (^)(NSString*, NSError *))completionBlock;
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,419 +0,0 @@
 | 
				
			|||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#import "AFJSONRequestOperation.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGApiClient
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
static long requestId = 0;
 | 
					 | 
				
			||||||
static bool offlineState = true;
 | 
					 | 
				
			||||||
static NSMutableSet * queuedRequests = nil;
 | 
					 | 
				
			||||||
static bool cacheEnabled = false;
 | 
					 | 
				
			||||||
static AFNetworkReachabilityStatus reachabilityStatus = AFNetworkReachabilityStatusNotReachable;
 | 
					 | 
				
			||||||
static NSOperationQueue* sharedQueue;
 | 
					 | 
				
			||||||
static void (^reachabilityChangeBlock)(int);
 | 
					 | 
				
			||||||
static bool loggingEnabled = false;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)setLoggingEnabled:(bool) state {
 | 
					 | 
				
			||||||
    loggingEnabled = state;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)clearCache {
 | 
					 | 
				
			||||||
    [[NSURLCache sharedURLCache] removeAllCachedResponses];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)setCacheEnabled:(BOOL)enabled {
 | 
					 | 
				
			||||||
    cacheEnabled = enabled;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void)configureCacheWithMemoryAndDiskCapacity:(unsigned long) memorySize
 | 
					 | 
				
			||||||
                                      diskSize:(unsigned long) diskSize {
 | 
					 | 
				
			||||||
    NSAssert(memorySize > 0, @"invalid in-memory cache size");
 | 
					 | 
				
			||||||
    NSAssert(diskSize >= 0, @"invalid disk cache size");
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSURLCache *cache =
 | 
					 | 
				
			||||||
    [[NSURLCache alloc]
 | 
					 | 
				
			||||||
     initWithMemoryCapacity:memorySize
 | 
					 | 
				
			||||||
     diskCapacity:diskSize
 | 
					 | 
				
			||||||
     diskPath:@"swagger_url_cache"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [NSURLCache setSharedURLCache:cache];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSOperationQueue*) sharedQueue {
 | 
					 | 
				
			||||||
    return sharedQueue;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGApiClient *)sharedClientFromPool:(NSString *)baseUrl {
 | 
					 | 
				
			||||||
    static NSMutableDictionary *_pool = nil;
 | 
					 | 
				
			||||||
    if (queuedRequests == nil) {
 | 
					 | 
				
			||||||
        queuedRequests = [[NSMutableSet alloc]init];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_pool == nil) {
 | 
					 | 
				
			||||||
        // setup static vars
 | 
					 | 
				
			||||||
        // create queue
 | 
					 | 
				
			||||||
        sharedQueue = [[NSOperationQueue alloc] init];
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        // create pool
 | 
					 | 
				
			||||||
        _pool = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        // initialize URL cache
 | 
					 | 
				
			||||||
        [SWGApiClient configureCacheWithMemoryAndDiskCapacity:4*1024*1024 diskSize:32*1024*1024];
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        // configure reachability
 | 
					 | 
				
			||||||
        [SWGApiClient configureCacheReachibilityForHost:baseUrl];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    @synchronized(self) {
 | 
					 | 
				
			||||||
        SWGApiClient * client = [_pool objectForKey:baseUrl];
 | 
					 | 
				
			||||||
        if (client == nil) {
 | 
					 | 
				
			||||||
            client = [[SWGApiClient alloc] initWithBaseURL:[NSURL URLWithString:baseUrl]];
 | 
					 | 
				
			||||||
            [client registerHTTPOperationClass:[AFJSONRequestOperation class]];
 | 
					 | 
				
			||||||
            client.parameterEncoding = AFJSONParameterEncoding;
 | 
					 | 
				
			||||||
            [_pool setValue:client forKey:baseUrl ];
 | 
					 | 
				
			||||||
            if(loggingEnabled)
 | 
					 | 
				
			||||||
                NSLog(@"new client for path %@", baseUrl);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(loggingEnabled)
 | 
					 | 
				
			||||||
            NSLog(@"returning client for path %@", baseUrl);
 | 
					 | 
				
			||||||
        return client;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void)setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
               forKey:(NSString*) forKey {
 | 
					 | 
				
			||||||
    [self setDefaultHeader:forKey value:value];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(unsigned long)requestQueueSize {
 | 
					 | 
				
			||||||
    return [queuedRequests count];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSNumber*) nextRequestId {
 | 
					 | 
				
			||||||
    long nextId = ++requestId;
 | 
					 | 
				
			||||||
    if(loggingEnabled)
 | 
					 | 
				
			||||||
        NSLog(@"got id %ld", nextId);
 | 
					 | 
				
			||||||
    return [NSNumber numberWithLong:nextId];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSNumber*) queueRequest {
 | 
					 | 
				
			||||||
    NSNumber* requestId = [SWGApiClient nextRequestId];
 | 
					 | 
				
			||||||
    if(loggingEnabled)
 | 
					 | 
				
			||||||
        NSLog(@"added %@ to request queue", requestId);
 | 
					 | 
				
			||||||
    [queuedRequests addObject:requestId];
 | 
					 | 
				
			||||||
    return requestId;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) cancelRequest:(NSNumber*)requestId {
 | 
					 | 
				
			||||||
    [queuedRequests removeObject:requestId];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) escape:(id)unescaped {
 | 
					 | 
				
			||||||
    if([unescaped isKindOfClass:[NSString class]]){
 | 
					 | 
				
			||||||
        return (NSString *)CFBridgingRelease
 | 
					 | 
				
			||||||
        (CFURLCreateStringByAddingPercentEscapes(
 | 
					 | 
				
			||||||
                                                 NULL,
 | 
					 | 
				
			||||||
                                                 (__bridge CFStringRef) unescaped,
 | 
					 | 
				
			||||||
                                                 NULL,
 | 
					 | 
				
			||||||
                                                 (CFStringRef)@"!*'();:@&=+$,/?%#[]",
 | 
					 | 
				
			||||||
                                                 kCFStringEncodingUTF8));
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else {
 | 
					 | 
				
			||||||
        return [NSString stringWithFormat:@"%@", unescaped];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(Boolean) executeRequestWithId:(NSNumber*) requestId {
 | 
					 | 
				
			||||||
    NSSet* matchingItems = [queuedRequests objectsPassingTest:^BOOL(id obj, BOOL *stop) {
 | 
					 | 
				
			||||||
        if([obj intValue]  == [requestId intValue])
 | 
					 | 
				
			||||||
            return TRUE;
 | 
					 | 
				
			||||||
        else return FALSE;
 | 
					 | 
				
			||||||
    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if(matchingItems.count == 1) {
 | 
					 | 
				
			||||||
        if(loggingEnabled)
 | 
					 | 
				
			||||||
            NSLog(@"removing request id %@", requestId);
 | 
					 | 
				
			||||||
        [queuedRequests removeObject:requestId];
 | 
					 | 
				
			||||||
        return true;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else
 | 
					 | 
				
			||||||
        return false;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)initWithBaseURL:(NSURL *)url {
 | 
					 | 
				
			||||||
    self = [super initWithBaseURL:url];
 | 
					 | 
				
			||||||
    if (!self)
 | 
					 | 
				
			||||||
        return nil;
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(AFNetworkReachabilityStatus) getReachabilityStatus {
 | 
					 | 
				
			||||||
    return reachabilityStatus;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setReachabilityChangeBlock:(void(^)(int))changeBlock {
 | 
					 | 
				
			||||||
    reachabilityChangeBlock = changeBlock;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setOfflineState:(BOOL) state {
 | 
					 | 
				
			||||||
    offlineState = state;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) configureCacheReachibilityForHost:(NSString*)host {
 | 
					 | 
				
			||||||
    [[SWGApiClient sharedClientFromPool:host ] setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
 | 
					 | 
				
			||||||
        reachabilityStatus = status;
 | 
					 | 
				
			||||||
        switch (status) {
 | 
					 | 
				
			||||||
            case AFNetworkReachabilityStatusUnknown:
 | 
					 | 
				
			||||||
                if(loggingEnabled)
 | 
					 | 
				
			||||||
                    NSLog(@"reachability changed to AFNetworkReachabilityStatusUnknown");
 | 
					 | 
				
			||||||
                [SWGApiClient setOfflineState:true];
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
            case AFNetworkReachabilityStatusNotReachable:
 | 
					 | 
				
			||||||
                if(loggingEnabled)
 | 
					 | 
				
			||||||
                    NSLog(@"reachability changed to AFNetworkReachabilityStatusNotReachable");
 | 
					 | 
				
			||||||
                [SWGApiClient setOfflineState:true];
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
            case AFNetworkReachabilityStatusReachableViaWWAN:
 | 
					 | 
				
			||||||
                if(loggingEnabled)
 | 
					 | 
				
			||||||
                    NSLog(@"reachability changed to AFNetworkReachabilityStatusReachableViaWWAN");
 | 
					 | 
				
			||||||
                [SWGApiClient setOfflineState:false];
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
            case AFNetworkReachabilityStatusReachableViaWiFi:
 | 
					 | 
				
			||||||
                if(loggingEnabled)
 | 
					 | 
				
			||||||
                    NSLog(@"reachability changed to AFNetworkReachabilityStatusReachableViaWiFi");
 | 
					 | 
				
			||||||
                [SWGApiClient setOfflineState:false];
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
            default:
 | 
					 | 
				
			||||||
                break;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        // call the reachability block, if configured
 | 
					 | 
				
			||||||
        if(reachabilityChangeBlock != nil) {
 | 
					 | 
				
			||||||
            reachabilityChangeBlock(status);
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSString*) pathWithQueryParamsToString:(NSString*) path
 | 
					 | 
				
			||||||
                             queryParams:(NSDictionary*) queryParams {
 | 
					 | 
				
			||||||
    NSString * separator = nil;
 | 
					 | 
				
			||||||
    int counter = 0;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSMutableString * requestUrl = [NSMutableString stringWithFormat:@"%@", path];
 | 
					 | 
				
			||||||
    if(queryParams != nil){
 | 
					 | 
				
			||||||
        for(NSString * key in [queryParams keyEnumerator]){
 | 
					 | 
				
			||||||
            if(counter == 0) separator = @"?";
 | 
					 | 
				
			||||||
            else separator = @"&";
 | 
					 | 
				
			||||||
            NSString * value;
 | 
					 | 
				
			||||||
            if([[queryParams valueForKey:key] isKindOfClass:[NSString class]]){
 | 
					 | 
				
			||||||
                value = [SWGApiClient escape:[queryParams valueForKey:key]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                value = [NSString stringWithFormat:@"%@", [queryParams valueForKey:key]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            [requestUrl appendString:[NSString stringWithFormat:@"%@%@=%@", separator,
 | 
					 | 
				
			||||||
                                      [SWGApiClient escape:key], value]];
 | 
					 | 
				
			||||||
            counter += 1;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return requestUrl;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (NSString*)descriptionForRequest:(NSURLRequest*)request {
 | 
					 | 
				
			||||||
    return [[request URL] absoluteString];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)logRequest:(NSURLRequest*)request {
 | 
					 | 
				
			||||||
    NSLog(@"request: %@", [self descriptionForRequest:request]);
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)logResponse:(id)data forRequest:(NSURLRequest*)request error:(NSError*)error {
 | 
					 | 
				
			||||||
    NSLog(@"request: %@  response: %@ ",  [self descriptionForRequest:request], data );
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*)  dictionary:(NSString*) path
 | 
					 | 
				
			||||||
                  method:(NSString*) method
 | 
					 | 
				
			||||||
             queryParams:(NSDictionary*) queryParams
 | 
					 | 
				
			||||||
                    body:(id) body
 | 
					 | 
				
			||||||
            headerParams:(NSDictionary*) headerParams
 | 
					 | 
				
			||||||
      requestContentType:(NSString*) requestContentType
 | 
					 | 
				
			||||||
     responseContentType:(NSString*) responseContentType
 | 
					 | 
				
			||||||
         completionBlock:(void (^)(NSDictionary*, NSError *))completionBlock {
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSMutableURLRequest * request = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if ([body isKindOfClass:[SWGFile class]]){
 | 
					 | 
				
			||||||
        SWGFile * file = (SWGFile*) body;
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        request = [self multipartFormRequestWithMethod:@"POST"
 | 
					 | 
				
			||||||
                                                  path:path
 | 
					 | 
				
			||||||
                                            parameters:nil
 | 
					 | 
				
			||||||
                             constructingBodyWithBlock: ^(id <AFMultipartFormData> formData) {
 | 
					 | 
				
			||||||
                                 [formData appendPartWithFileData:[file data]
 | 
					 | 
				
			||||||
                                                             name:@"image"
 | 
					 | 
				
			||||||
                                                         fileName:[file name]
 | 
					 | 
				
			||||||
                                                         mimeType:[file mimeType]];
 | 
					 | 
				
			||||||
                             }];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else {
 | 
					 | 
				
			||||||
        request = [self requestWithMethod:method
 | 
					 | 
				
			||||||
                                     path:[self pathWithQueryParamsToString:path queryParams:queryParams]
 | 
					 | 
				
			||||||
                               parameters:body];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    BOOL hasHeaderParams = false;
 | 
					 | 
				
			||||||
    if(headerParams != nil && [headerParams count] > 0)
 | 
					 | 
				
			||||||
        hasHeaderParams = true;
 | 
					 | 
				
			||||||
    if(offlineState) {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache forced", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestReturnCacheDataDontLoad];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if(!hasHeaderParams && [method isEqualToString:@"GET"] && cacheEnabled) {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache enabled", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestUseProtocolCachePolicy];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache disabled", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(body != nil) {
 | 
					 | 
				
			||||||
        if([body isKindOfClass:[NSDictionary class]] || [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            [request setValue:requestContentType forHTTPHeaderField:@"Content-Type"];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if ([body isKindOfClass:[SWGFile class]]) {}
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            NSAssert(false, @"unsupported post type!");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(headerParams != nil){
 | 
					 | 
				
			||||||
        for(NSString * key in [headerParams keyEnumerator]){
 | 
					 | 
				
			||||||
            [request setValue:[headerParams valueForKey:key] forHTTPHeaderField:key];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    [request setValue:[headerParams valueForKey:responseContentType] forHTTPHeaderField:@"Accept"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    // Always disable cookies!
 | 
					 | 
				
			||||||
    [request setHTTPShouldHandleCookies:NO];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if (self.logRequests) {
 | 
					 | 
				
			||||||
        [self logRequest:request];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSNumber* requestId = [SWGApiClient queueRequest];
 | 
					 | 
				
			||||||
    AFJSONRequestOperation *op =
 | 
					 | 
				
			||||||
    [AFJSONRequestOperation
 | 
					 | 
				
			||||||
     JSONRequestOperationWithRequest:request
 | 
					 | 
				
			||||||
     success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
 | 
					 | 
				
			||||||
         if([self executeRequestWithId:requestId]) {
 | 
					 | 
				
			||||||
             if(self.logServerResponses)
 | 
					 | 
				
			||||||
                 [self logResponse:JSON forRequest:request error:nil];
 | 
					 | 
				
			||||||
             completionBlock(JSON, nil);
 | 
					 | 
				
			||||||
         }
 | 
					 | 
				
			||||||
     } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id data) {
 | 
					 | 
				
			||||||
         if([self executeRequestWithId:requestId]) {
 | 
					 | 
				
			||||||
             if(self.logServerResponses)
 | 
					 | 
				
			||||||
                 [self logResponse:nil forRequest:request error:error];
 | 
					 | 
				
			||||||
             completionBlock(nil, error);
 | 
					 | 
				
			||||||
         }
 | 
					 | 
				
			||||||
     }
 | 
					 | 
				
			||||||
     ];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [self enqueueHTTPRequestOperation:op];
 | 
					 | 
				
			||||||
    return requestId;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*)  stringWithCompletionBlock:(NSString*) path
 | 
					 | 
				
			||||||
                                 method:(NSString*) method
 | 
					 | 
				
			||||||
                            queryParams:(NSDictionary*) queryParams
 | 
					 | 
				
			||||||
                                   body:(id) body
 | 
					 | 
				
			||||||
                           headerParams:(NSDictionary*) headerParams
 | 
					 | 
				
			||||||
                     requestContentType:(NSString*) requestContentType
 | 
					 | 
				
			||||||
                    responseContentType:(NSString*) responseContentType
 | 
					 | 
				
			||||||
                        completionBlock:(void (^)(NSString*, NSError *))completionBlock {
 | 
					 | 
				
			||||||
    AFHTTPClient *client = self;
 | 
					 | 
				
			||||||
    client.parameterEncoding = AFJSONParameterEncoding;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSMutableURLRequest * request = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if ([body isKindOfClass:[SWGFile class]]){
 | 
					 | 
				
			||||||
        SWGFile * file = (SWGFile*) body;
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        request = [self multipartFormRequestWithMethod:@"POST"
 | 
					 | 
				
			||||||
                                                  path:path
 | 
					 | 
				
			||||||
                                            parameters:nil
 | 
					 | 
				
			||||||
                             constructingBodyWithBlock: ^(id <AFMultipartFormData> formData) {
 | 
					 | 
				
			||||||
                                 [formData appendPartWithFileData:[file data]
 | 
					 | 
				
			||||||
                                                             name:@"image"
 | 
					 | 
				
			||||||
                                                         fileName:[file name]
 | 
					 | 
				
			||||||
                                                         mimeType:[file mimeType]];
 | 
					 | 
				
			||||||
                             }];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else {
 | 
					 | 
				
			||||||
        request = [self requestWithMethod:method
 | 
					 | 
				
			||||||
                                     path:[self pathWithQueryParamsToString:path queryParams:queryParams]
 | 
					 | 
				
			||||||
                               parameters:body];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    BOOL hasHeaderParams = false;
 | 
					 | 
				
			||||||
    if(headerParams != nil && [headerParams count] > 0)
 | 
					 | 
				
			||||||
        hasHeaderParams = true;
 | 
					 | 
				
			||||||
    if(offlineState) {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache forced", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestReturnCacheDataDontLoad];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if(!hasHeaderParams && [method isEqualToString:@"GET"] && cacheEnabled) {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache enabled", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestUseProtocolCachePolicy];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else {
 | 
					 | 
				
			||||||
        NSLog(@"%@ cache disabled", path);
 | 
					 | 
				
			||||||
        [request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if(body != nil) {
 | 
					 | 
				
			||||||
        if([body isKindOfClass:[NSDictionary class]]){
 | 
					 | 
				
			||||||
            [request setValue:requestContentType forHTTPHeaderField:@"Content-Type"];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if ([body isKindOfClass:[SWGFile class]]){}
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            NSAssert(false, @"unsupported post type!");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(headerParams != nil){
 | 
					 | 
				
			||||||
        for(NSString * key in [headerParams keyEnumerator]){
 | 
					 | 
				
			||||||
            [request setValue:[headerParams valueForKey:key] forHTTPHeaderField:key];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    [request setValue:[headerParams valueForKey:responseContentType] forHTTPHeaderField:@"Accept"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    // Always disable cookies!
 | 
					 | 
				
			||||||
    [request setHTTPShouldHandleCookies:NO];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSNumber* requestId = [SWGApiClient queueRequest];
 | 
					 | 
				
			||||||
    AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc] initWithRequest:request];
 | 
					 | 
				
			||||||
    [op setCompletionBlockWithSuccess:
 | 
					 | 
				
			||||||
     ^(AFHTTPRequestOperation *resp,
 | 
					 | 
				
			||||||
       id responseObject) {
 | 
					 | 
				
			||||||
         NSString *response = [resp responseString];
 | 
					 | 
				
			||||||
         if([self executeRequestWithId:requestId]) {
 | 
					 | 
				
			||||||
             if(self.logServerResponses)
 | 
					 | 
				
			||||||
                 [self logResponse:responseObject forRequest:request error:nil];
 | 
					 | 
				
			||||||
             completionBlock(response, nil);
 | 
					 | 
				
			||||||
         }
 | 
					 | 
				
			||||||
     } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 | 
					 | 
				
			||||||
         if([self executeRequestWithId:requestId]) {
 | 
					 | 
				
			||||||
             if(self.logServerResponses)
 | 
					 | 
				
			||||||
                 [self logResponse:nil forRequest:request error:error];
 | 
					 | 
				
			||||||
             completionBlock(nil, error);
 | 
					 | 
				
			||||||
         }
 | 
					 | 
				
			||||||
     }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [self enqueueHTTPRequestOperation:op];
 | 
					 | 
				
			||||||
    return requestId;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,31 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGApiTokenStatus : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* valid;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* token;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* resetsInMillis;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* remainingCalls;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* expiresInMillis;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* totalRequests;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) valid: (NSNumber*) valid
 | 
					 | 
				
			||||||
     token: (NSString*) token
 | 
					 | 
				
			||||||
     resetsInMillis: (NSNumber*) resetsInMillis
 | 
					 | 
				
			||||||
     remainingCalls: (NSNumber*) remainingCalls
 | 
					 | 
				
			||||||
     expiresInMillis: (NSNumber*) expiresInMillis
 | 
					 | 
				
			||||||
     totalRequests: (NSNumber*) totalRequests;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,51 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGApiTokenStatus.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGApiTokenStatus
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)valid: (NSNumber*) valid
 | 
					 | 
				
			||||||
    token: (NSString*) token
 | 
					 | 
				
			||||||
    resetsInMillis: (NSNumber*) resetsInMillis
 | 
					 | 
				
			||||||
    remainingCalls: (NSNumber*) remainingCalls
 | 
					 | 
				
			||||||
    expiresInMillis: (NSNumber*) expiresInMillis
 | 
					 | 
				
			||||||
    totalRequests: (NSNumber*) totalRequests
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _valid = valid;
 | 
					 | 
				
			||||||
  _token = token;
 | 
					 | 
				
			||||||
  _resetsInMillis = resetsInMillis;
 | 
					 | 
				
			||||||
  _remainingCalls = remainingCalls;
 | 
					 | 
				
			||||||
  _expiresInMillis = expiresInMillis;
 | 
					 | 
				
			||||||
  _totalRequests = totalRequests;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _valid = dict[@"valid"]; 
 | 
					 | 
				
			||||||
        _token = dict[@"token"]; 
 | 
					 | 
				
			||||||
        _resetsInMillis = dict[@"resetsInMillis"]; 
 | 
					 | 
				
			||||||
        _remainingCalls = dict[@"remainingCalls"]; 
 | 
					 | 
				
			||||||
        _expiresInMillis = dict[@"expiresInMillis"]; 
 | 
					 | 
				
			||||||
        _totalRequests = dict[@"totalRequests"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_valid != nil) dict[@"valid"] = _valid ;
 | 
					 | 
				
			||||||
        if(_token != nil) dict[@"token"] = _token ;
 | 
					 | 
				
			||||||
        if(_resetsInMillis != nil) dict[@"resetsInMillis"] = _resetsInMillis ;
 | 
					 | 
				
			||||||
        if(_remainingCalls != nil) dict[@"remainingCalls"] = _remainingCalls ;
 | 
					 | 
				
			||||||
        if(_expiresInMillis != nil) dict[@"expiresInMillis"] = _expiresInMillis ;
 | 
					 | 
				
			||||||
        if(_totalRequests != nil) dict[@"totalRequests"] = _totalRequests ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,56 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGAudioFile : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* attributionUrl;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* commentCount;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* voteCount;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* fileUrl;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* audioType;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* duration;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* attributionText;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* createdBy;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* description;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* createdAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* voteWeightedAverage;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* voteAverage;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) attributionUrl: (NSString*) attributionUrl
 | 
					 | 
				
			||||||
     commentCount: (NSNumber*) commentCount
 | 
					 | 
				
			||||||
     voteCount: (NSNumber*) voteCount
 | 
					 | 
				
			||||||
     fileUrl: (NSString*) fileUrl
 | 
					 | 
				
			||||||
     audioType: (NSString*) audioType
 | 
					 | 
				
			||||||
     _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     duration: (NSNumber*) duration
 | 
					 | 
				
			||||||
     attributionText: (NSString*) attributionText
 | 
					 | 
				
			||||||
     createdBy: (NSString*) createdBy
 | 
					 | 
				
			||||||
     description: (NSString*) description
 | 
					 | 
				
			||||||
     createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
     voteWeightedAverage: (NSNumber*) voteWeightedAverage
 | 
					 | 
				
			||||||
     voteAverage: (NSNumber*) voteAverage
 | 
					 | 
				
			||||||
     word: (NSString*) word;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,102 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGAudioFile.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGAudioFile
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)attributionUrl: (NSString*) attributionUrl
 | 
					 | 
				
			||||||
    commentCount: (NSNumber*) commentCount
 | 
					 | 
				
			||||||
    voteCount: (NSNumber*) voteCount
 | 
					 | 
				
			||||||
    fileUrl: (NSString*) fileUrl
 | 
					 | 
				
			||||||
    audioType: (NSString*) audioType
 | 
					 | 
				
			||||||
    _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    duration: (NSNumber*) duration
 | 
					 | 
				
			||||||
    attributionText: (NSString*) attributionText
 | 
					 | 
				
			||||||
    createdBy: (NSString*) createdBy
 | 
					 | 
				
			||||||
    description: (NSString*) description
 | 
					 | 
				
			||||||
    createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
    voteWeightedAverage: (NSNumber*) voteWeightedAverage
 | 
					 | 
				
			||||||
    voteAverage: (NSNumber*) voteAverage
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _attributionUrl = attributionUrl;
 | 
					 | 
				
			||||||
  _commentCount = commentCount;
 | 
					 | 
				
			||||||
  _voteCount = voteCount;
 | 
					 | 
				
			||||||
  _fileUrl = fileUrl;
 | 
					 | 
				
			||||||
  _audioType = audioType;
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _duration = duration;
 | 
					 | 
				
			||||||
  _attributionText = attributionText;
 | 
					 | 
				
			||||||
  _createdBy = createdBy;
 | 
					 | 
				
			||||||
  _description = description;
 | 
					 | 
				
			||||||
  _createdAt = createdAt;
 | 
					 | 
				
			||||||
  _voteWeightedAverage = voteWeightedAverage;
 | 
					 | 
				
			||||||
  _voteAverage = voteAverage;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _attributionUrl = dict[@"attributionUrl"]; 
 | 
					 | 
				
			||||||
        _commentCount = dict[@"commentCount"]; 
 | 
					 | 
				
			||||||
        _voteCount = dict[@"voteCount"]; 
 | 
					 | 
				
			||||||
        _fileUrl = dict[@"fileUrl"]; 
 | 
					 | 
				
			||||||
        _audioType = dict[@"audioType"]; 
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _duration = dict[@"duration"]; 
 | 
					 | 
				
			||||||
        _attributionText = dict[@"attributionText"]; 
 | 
					 | 
				
			||||||
        _createdBy = dict[@"createdBy"]; 
 | 
					 | 
				
			||||||
        _description = dict[@"description"]; 
 | 
					 | 
				
			||||||
        id createdAt_dict = dict[@"createdAt"];
 | 
					 | 
				
			||||||
        if(createdAt_dict != nil)
 | 
					 | 
				
			||||||
            _createdAt = [[SWGDate alloc]initWithValues:createdAt_dict];
 | 
					 | 
				
			||||||
        _voteWeightedAverage = dict[@"voteWeightedAverage"]; 
 | 
					 | 
				
			||||||
        _voteAverage = dict[@"voteAverage"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_attributionUrl != nil) dict[@"attributionUrl"] = _attributionUrl ;
 | 
					 | 
				
			||||||
        if(_commentCount != nil) dict[@"commentCount"] = _commentCount ;
 | 
					 | 
				
			||||||
        if(_voteCount != nil) dict[@"voteCount"] = _voteCount ;
 | 
					 | 
				
			||||||
        if(_fileUrl != nil) dict[@"fileUrl"] = _fileUrl ;
 | 
					 | 
				
			||||||
        if(_audioType != nil) dict[@"audioType"] = _audioType ;
 | 
					 | 
				
			||||||
        if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_duration != nil) dict[@"duration"] = _duration ;
 | 
					 | 
				
			||||||
        if(_attributionText != nil) dict[@"attributionText"] = _attributionText ;
 | 
					 | 
				
			||||||
        if(_createdBy != nil) dict[@"createdBy"] = _createdBy ;
 | 
					 | 
				
			||||||
        if(_description != nil) dict[@"description"] = _description ;
 | 
					 | 
				
			||||||
        if(_createdAt != nil){
 | 
					 | 
				
			||||||
        if([_createdAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *createdAt in (NSArray*)_createdAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)createdAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"createdAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_createdAt && [_createdAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_createdAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"createdAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_createdAt != nil) dict[@"createdAt"] = [(SWGObject*)_createdAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_voteWeightedAverage != nil) dict[@"voteWeightedAverage"] = _voteWeightedAverage ;
 | 
					 | 
				
			||||||
        if(_voteAverage != nil) dict[@"voteAverage"] = _voteAverage ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,22 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGAuthenticationToken : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* token;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* userId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* userSignature;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) token: (NSString*) token
 | 
					 | 
				
			||||||
     userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
     userSignature: (NSString*) userSignature;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,39 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGAuthenticationToken.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGAuthenticationToken
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)token: (NSString*) token
 | 
					 | 
				
			||||||
    userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
    userSignature: (NSString*) userSignature
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _token = token;
 | 
					 | 
				
			||||||
  _userId = userId;
 | 
					 | 
				
			||||||
  _userSignature = userSignature;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _token = dict[@"token"]; 
 | 
					 | 
				
			||||||
        _userId = dict[@"userId"]; 
 | 
					 | 
				
			||||||
        _userSignature = dict[@"userSignature"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_token != nil) dict[@"token"] = _token ;
 | 
					 | 
				
			||||||
        if(_userId != nil) dict[@"userId"] = _userId ;
 | 
					 | 
				
			||||||
        if(_userSignature != nil) dict[@"userSignature"] = _userSignature ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,28 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGBigram : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* count;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* gram2;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* gram1;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* wlmi;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* mi;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) count: (NSNumber*) count
 | 
					 | 
				
			||||||
     gram2: (NSString*) gram2
 | 
					 | 
				
			||||||
     gram1: (NSString*) gram1
 | 
					 | 
				
			||||||
     wlmi: (NSNumber*) wlmi
 | 
					 | 
				
			||||||
     mi: (NSNumber*) mi;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,47 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGBigram.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGBigram
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)count: (NSNumber*) count
 | 
					 | 
				
			||||||
    gram2: (NSString*) gram2
 | 
					 | 
				
			||||||
    gram1: (NSString*) gram1
 | 
					 | 
				
			||||||
    wlmi: (NSNumber*) wlmi
 | 
					 | 
				
			||||||
    mi: (NSNumber*) mi
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _count = count;
 | 
					 | 
				
			||||||
  _gram2 = gram2;
 | 
					 | 
				
			||||||
  _gram1 = gram1;
 | 
					 | 
				
			||||||
  _wlmi = wlmi;
 | 
					 | 
				
			||||||
  _mi = mi;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _count = dict[@"count"]; 
 | 
					 | 
				
			||||||
        _gram2 = dict[@"gram2"]; 
 | 
					 | 
				
			||||||
        _gram1 = dict[@"gram1"]; 
 | 
					 | 
				
			||||||
        _wlmi = dict[@"wlmi"]; 
 | 
					 | 
				
			||||||
        _mi = dict[@"mi"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_count != nil) dict[@"count"] = _count ;
 | 
					 | 
				
			||||||
        if(_gram2 != nil) dict[@"gram2"] = _gram2 ;
 | 
					 | 
				
			||||||
        if(_gram1 != nil) dict[@"gram1"] = _gram1 ;
 | 
					 | 
				
			||||||
        if(_wlmi != nil) dict[@"wlmi"] = _wlmi ;
 | 
					 | 
				
			||||||
        if(_mi != nil) dict[@"mi"] = _mi ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGCitation : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* cite;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* source;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) cite: (NSString*) cite
 | 
					 | 
				
			||||||
     source: (NSString*) source;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGCitation.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGCitation
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)cite: (NSString*) cite
 | 
					 | 
				
			||||||
    source: (NSString*) source
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _cite = cite;
 | 
					 | 
				
			||||||
  _source = source;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _cite = dict[@"cite"]; 
 | 
					 | 
				
			||||||
        _source = dict[@"source"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_cite != nil) dict[@"cite"] = _cite ;
 | 
					 | 
				
			||||||
        if(_source != nil) dict[@"source"] = _source ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGContentProvider : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* name;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     name: (NSString*) name;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGContentProvider.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGContentProvider
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    name: (NSString*) name
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _name = name;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _name = dict[@"name"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_name != nil) dict[@"name"] = _name ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,12 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGDate : SWGObject {
 | 
					 | 
				
			||||||
@private
 | 
					 | 
				
			||||||
    NSDate *_date;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@property(nonatomic, readonly) NSDate* date;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSString*)input;
 | 
					 | 
				
			||||||
-(NSString*) toString;
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,34 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGDate
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@synthesize date = _date;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues:(NSString*)input {
 | 
					 | 
				
			||||||
    if([input isKindOfClass:[NSString class]]){
 | 
					 | 
				
			||||||
        NSDateFormatter* df = [NSDateFormatter new];
 | 
					 | 
				
			||||||
        NSLocale *locale = [[NSLocale new]                        
 | 
					 | 
				
			||||||
                            initWithLocaleIdentifier:@"en_US_POSIX"];
 | 
					 | 
				
			||||||
        [df setLocale:locale];
 | 
					 | 
				
			||||||
        [df setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZ"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        _date = [df dateFromString:input];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([input isKindOfClass:[NSNumber class]]) {
 | 
					 | 
				
			||||||
        NSTimeInterval interval = [input doubleValue];
 | 
					 | 
				
			||||||
        _date = [[NSDate alloc] initWithTimeIntervalSince1970:interval];        
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSString*) toString {
 | 
					 | 
				
			||||||
    NSDateFormatter* df = [NSDateFormatter new];
 | 
					 | 
				
			||||||
    NSLocale *locale = [[NSLocale new]                        
 | 
					 | 
				
			||||||
                        initWithLocaleIdentifier:@"en_US_POSIX"];
 | 
					 | 
				
			||||||
    [df setLocale:locale];
 | 
					 | 
				
			||||||
    [df setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSZ"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    return [df stringFromDate:_date];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,67 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGLabel.h"
 | 
					 | 
				
			||||||
#import "SWGExampleUsage.h"
 | 
					 | 
				
			||||||
#import "SWGTextPron.h"
 | 
					 | 
				
			||||||
#import "SWGCitation.h"
 | 
					 | 
				
			||||||
#import "SWGRelated.h"
 | 
					 | 
				
			||||||
#import "SWGNote.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGDefinition : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* extendedText;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* sourceDictionary;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* citations;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* labels;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* score;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* exampleUses;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* attributionUrl;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* seqString;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* attributionText;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* relatedWords;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* sequence;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* notes;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* textProns;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* partOfSpeech;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) extendedText: (NSString*) extendedText
 | 
					 | 
				
			||||||
     text: (NSString*) text
 | 
					 | 
				
			||||||
     sourceDictionary: (NSString*) sourceDictionary
 | 
					 | 
				
			||||||
     citations: (NSArray*) citations
 | 
					 | 
				
			||||||
     labels: (NSArray*) labels
 | 
					 | 
				
			||||||
     score: (NSNumber*) score
 | 
					 | 
				
			||||||
     exampleUses: (NSArray*) exampleUses
 | 
					 | 
				
			||||||
     attributionUrl: (NSString*) attributionUrl
 | 
					 | 
				
			||||||
     seqString: (NSString*) seqString
 | 
					 | 
				
			||||||
     attributionText: (NSString*) attributionText
 | 
					 | 
				
			||||||
     relatedWords: (NSArray*) relatedWords
 | 
					 | 
				
			||||||
     sequence: (NSString*) sequence
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     notes: (NSArray*) notes
 | 
					 | 
				
			||||||
     textProns: (NSArray*) textProns
 | 
					 | 
				
			||||||
     partOfSpeech: (NSString*) partOfSpeech;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,307 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGDefinition.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGDefinition
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)extendedText: (NSString*) extendedText
 | 
					 | 
				
			||||||
    text: (NSString*) text
 | 
					 | 
				
			||||||
    sourceDictionary: (NSString*) sourceDictionary
 | 
					 | 
				
			||||||
    citations: (NSArray*) citations
 | 
					 | 
				
			||||||
    labels: (NSArray*) labels
 | 
					 | 
				
			||||||
    score: (NSNumber*) score
 | 
					 | 
				
			||||||
    exampleUses: (NSArray*) exampleUses
 | 
					 | 
				
			||||||
    attributionUrl: (NSString*) attributionUrl
 | 
					 | 
				
			||||||
    seqString: (NSString*) seqString
 | 
					 | 
				
			||||||
    attributionText: (NSString*) attributionText
 | 
					 | 
				
			||||||
    relatedWords: (NSArray*) relatedWords
 | 
					 | 
				
			||||||
    sequence: (NSString*) sequence
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    notes: (NSArray*) notes
 | 
					 | 
				
			||||||
    textProns: (NSArray*) textProns
 | 
					 | 
				
			||||||
    partOfSpeech: (NSString*) partOfSpeech
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _extendedText = extendedText;
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _sourceDictionary = sourceDictionary;
 | 
					 | 
				
			||||||
  _citations = citations;
 | 
					 | 
				
			||||||
  _labels = labels;
 | 
					 | 
				
			||||||
  _score = score;
 | 
					 | 
				
			||||||
  _exampleUses = exampleUses;
 | 
					 | 
				
			||||||
  _attributionUrl = attributionUrl;
 | 
					 | 
				
			||||||
  _seqString = seqString;
 | 
					 | 
				
			||||||
  _attributionText = attributionText;
 | 
					 | 
				
			||||||
  _relatedWords = relatedWords;
 | 
					 | 
				
			||||||
  _sequence = sequence;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _notes = notes;
 | 
					 | 
				
			||||||
  _textProns = textProns;
 | 
					 | 
				
			||||||
  _partOfSpeech = partOfSpeech;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _extendedText = dict[@"extendedText"]; 
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        _sourceDictionary = dict[@"sourceDictionary"]; 
 | 
					 | 
				
			||||||
        id citations_dict = dict[@"citations"];
 | 
					 | 
				
			||||||
        if([citations_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)citations_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)citations_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)citations_dict) {
 | 
					 | 
				
			||||||
                    SWGCitation* d = [[SWGCitation alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _citations = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _citations = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _citations = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        id labels_dict = dict[@"labels"];
 | 
					 | 
				
			||||||
        if([labels_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)labels_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)labels_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)labels_dict) {
 | 
					 | 
				
			||||||
                    SWGLabel* d = [[SWGLabel alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _labels = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _labels = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _labels = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _score = dict[@"score"]; 
 | 
					 | 
				
			||||||
        id exampleUses_dict = dict[@"exampleUses"];
 | 
					 | 
				
			||||||
        if([exampleUses_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)exampleUses_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)exampleUses_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)exampleUses_dict) {
 | 
					 | 
				
			||||||
                    SWGExampleUsage* d = [[SWGExampleUsage alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _exampleUses = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _exampleUses = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _exampleUses = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _attributionUrl = dict[@"attributionUrl"]; 
 | 
					 | 
				
			||||||
        _seqString = dict[@"seqString"]; 
 | 
					 | 
				
			||||||
        _attributionText = dict[@"attributionText"]; 
 | 
					 | 
				
			||||||
        id relatedWords_dict = dict[@"relatedWords"];
 | 
					 | 
				
			||||||
        if([relatedWords_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)relatedWords_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)relatedWords_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)relatedWords_dict) {
 | 
					 | 
				
			||||||
                    SWGRelated* d = [[SWGRelated alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _relatedWords = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _relatedWords = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _relatedWords = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _sequence = dict[@"sequence"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        id notes_dict = dict[@"notes"];
 | 
					 | 
				
			||||||
        if([notes_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)notes_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)notes_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)notes_dict) {
 | 
					 | 
				
			||||||
                    SWGNote* d = [[SWGNote alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _notes = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _notes = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _notes = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        id textProns_dict = dict[@"textProns"];
 | 
					 | 
				
			||||||
        if([textProns_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)textProns_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)textProns_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)textProns_dict) {
 | 
					 | 
				
			||||||
                    SWGTextPron* d = [[SWGTextPron alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _textProns = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _textProns = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _textProns = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _partOfSpeech = dict[@"partOfSpeech"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_extendedText != nil) dict[@"extendedText"] = _extendedText ;
 | 
					 | 
				
			||||||
        if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_sourceDictionary != nil) dict[@"sourceDictionary"] = _sourceDictionary ;
 | 
					 | 
				
			||||||
        if(_citations != nil){
 | 
					 | 
				
			||||||
        if([_citations isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGCitation *citations in (NSArray*)_citations) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)citations asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"citations"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_citations && [_citations isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_citations toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"citations"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_citations != nil) dict[@"citations"] = [(SWGObject*)_citations asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_labels != nil){
 | 
					 | 
				
			||||||
        if([_labels isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGLabel *labels in (NSArray*)_labels) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)labels asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"labels"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_labels && [_labels isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_labels toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"labels"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_labels != nil) dict[@"labels"] = [(SWGObject*)_labels asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_score != nil) dict[@"score"] = _score ;
 | 
					 | 
				
			||||||
        if(_exampleUses != nil){
 | 
					 | 
				
			||||||
        if([_exampleUses isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGExampleUsage *exampleUses in (NSArray*)_exampleUses) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)exampleUses asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"exampleUses"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_exampleUses && [_exampleUses isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_exampleUses toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"exampleUses"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_exampleUses != nil) dict[@"exampleUses"] = [(SWGObject*)_exampleUses asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_attributionUrl != nil) dict[@"attributionUrl"] = _attributionUrl ;
 | 
					 | 
				
			||||||
        if(_seqString != nil) dict[@"seqString"] = _seqString ;
 | 
					 | 
				
			||||||
        if(_attributionText != nil) dict[@"attributionText"] = _attributionText ;
 | 
					 | 
				
			||||||
        if(_relatedWords != nil){
 | 
					 | 
				
			||||||
        if([_relatedWords isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGRelated *relatedWords in (NSArray*)_relatedWords) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)relatedWords asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"relatedWords"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_relatedWords && [_relatedWords isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_relatedWords toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"relatedWords"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_relatedWords != nil) dict[@"relatedWords"] = [(SWGObject*)_relatedWords asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_sequence != nil) dict[@"sequence"] = _sequence ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_notes != nil){
 | 
					 | 
				
			||||||
        if([_notes isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGNote *notes in (NSArray*)_notes) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)notes asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"notes"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_notes && [_notes isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_notes toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"notes"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_notes != nil) dict[@"notes"] = [(SWGObject*)_notes asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_textProns != nil){
 | 
					 | 
				
			||||||
        if([_textProns isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGTextPron *textProns in (NSArray*)_textProns) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)textProns asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"textProns"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_textProns && [_textProns isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_textProns toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"textProns"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_textProns != nil) dict[@"textProns"] = [(SWGObject*)_textProns asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_partOfSpeech != nil) dict[@"partOfSpeech"] = _partOfSpeech ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,20 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGDefinition.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGDefinitionSearchResults : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* results;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* totalResults;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) results: (NSArray*) results
 | 
					 | 
				
			||||||
     totalResults: (NSNumber*) totalResults;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,71 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGDefinitionSearchResults.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGDefinitionSearchResults
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)results: (NSArray*) results
 | 
					 | 
				
			||||||
    totalResults: (NSNumber*) totalResults
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _results = results;
 | 
					 | 
				
			||||||
  _totalResults = totalResults;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        id results_dict = dict[@"results"];
 | 
					 | 
				
			||||||
        if([results_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)results_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)results_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)results_dict) {
 | 
					 | 
				
			||||||
                    SWGDefinition* d = [[SWGDefinition alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _results = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _results = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _results = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _totalResults = dict[@"totalResults"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_results != nil){
 | 
					 | 
				
			||||||
        if([_results isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDefinition *results in (NSArray*)_results) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)results asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"results"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_results && [_results isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_results toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"results"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_results != nil) dict[@"results"] = [(SWGObject*)_results asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_totalResults != nil) dict[@"totalResults"] = _totalResults ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,52 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGSentence.h"
 | 
					 | 
				
			||||||
#import "SWGContentProvider.h"
 | 
					 | 
				
			||||||
#import "SWGScoredWord.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGExample : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* exampleId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* title;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGScoredWord* score;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGSentence* sentence;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGContentProvider* provider;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* year;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* rating;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* documentId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* url;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     exampleId: (NSNumber*) exampleId
 | 
					 | 
				
			||||||
     title: (NSString*) title
 | 
					 | 
				
			||||||
     text: (NSString*) text
 | 
					 | 
				
			||||||
     score: (SWGScoredWord*) score
 | 
					 | 
				
			||||||
     sentence: (SWGSentence*) sentence
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     provider: (SWGContentProvider*) provider
 | 
					 | 
				
			||||||
     year: (NSNumber*) year
 | 
					 | 
				
			||||||
     rating: (NSNumber*) rating
 | 
					 | 
				
			||||||
     documentId: (NSNumber*) documentId
 | 
					 | 
				
			||||||
     url: (NSString*) url;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,132 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGExample.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGExample
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    exampleId: (NSNumber*) exampleId
 | 
					 | 
				
			||||||
    title: (NSString*) title
 | 
					 | 
				
			||||||
    text: (NSString*) text
 | 
					 | 
				
			||||||
    score: (SWGScoredWord*) score
 | 
					 | 
				
			||||||
    sentence: (SWGSentence*) sentence
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    provider: (SWGContentProvider*) provider
 | 
					 | 
				
			||||||
    year: (NSNumber*) year
 | 
					 | 
				
			||||||
    rating: (NSNumber*) rating
 | 
					 | 
				
			||||||
    documentId: (NSNumber*) documentId
 | 
					 | 
				
			||||||
    url: (NSString*) url
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _exampleId = exampleId;
 | 
					 | 
				
			||||||
  _title = title;
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _score = score;
 | 
					 | 
				
			||||||
  _sentence = sentence;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _provider = provider;
 | 
					 | 
				
			||||||
  _year = year;
 | 
					 | 
				
			||||||
  _rating = rating;
 | 
					 | 
				
			||||||
  _documentId = documentId;
 | 
					 | 
				
			||||||
  _url = url;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _exampleId = dict[@"exampleId"]; 
 | 
					 | 
				
			||||||
        _title = dict[@"title"]; 
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        id score_dict = dict[@"score"];
 | 
					 | 
				
			||||||
        if(score_dict != nil)
 | 
					 | 
				
			||||||
            _score = [[SWGScoredWord alloc]initWithValues:score_dict];
 | 
					 | 
				
			||||||
        id sentence_dict = dict[@"sentence"];
 | 
					 | 
				
			||||||
        if(sentence_dict != nil)
 | 
					 | 
				
			||||||
            _sentence = [[SWGSentence alloc]initWithValues:sentence_dict];
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        id provider_dict = dict[@"provider"];
 | 
					 | 
				
			||||||
        if(provider_dict != nil)
 | 
					 | 
				
			||||||
            _provider = [[SWGContentProvider alloc]initWithValues:provider_dict];
 | 
					 | 
				
			||||||
        _year = dict[@"year"]; 
 | 
					 | 
				
			||||||
        _rating = dict[@"rating"]; 
 | 
					 | 
				
			||||||
        _documentId = dict[@"documentId"]; 
 | 
					 | 
				
			||||||
        _url = dict[@"url"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_exampleId != nil) dict[@"exampleId"] = _exampleId ;
 | 
					 | 
				
			||||||
        if(_title != nil) dict[@"title"] = _title ;
 | 
					 | 
				
			||||||
        if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_score != nil){
 | 
					 | 
				
			||||||
        if([_score isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGScoredWord *score in (NSArray*)_score) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)score asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"score"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_score && [_score isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_score toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"score"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_score != nil) dict[@"score"] = [(SWGObject*)_score asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_sentence != nil){
 | 
					 | 
				
			||||||
        if([_sentence isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGSentence *sentence in (NSArray*)_sentence) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)sentence asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"sentence"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_sentence && [_sentence isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_sentence toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"sentence"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_sentence != nil) dict[@"sentence"] = [(SWGObject*)_sentence asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_provider != nil){
 | 
					 | 
				
			||||||
        if([_provider isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGContentProvider *provider in (NSArray*)_provider) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)provider asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"provider"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_provider && [_provider isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_provider toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"provider"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_provider != nil) dict[@"provider"] = [(SWGObject*)_provider asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_year != nil) dict[@"year"] = _year ;
 | 
					 | 
				
			||||||
        if(_rating != nil) dict[@"rating"] = _rating ;
 | 
					 | 
				
			||||||
        if(_documentId != nil) dict[@"documentId"] = _documentId ;
 | 
					 | 
				
			||||||
        if(_url != nil) dict[@"url"] = _url ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,21 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGFacet.h"
 | 
					 | 
				
			||||||
#import "SWGExample.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGExampleSearchResults : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* facets;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* examples;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) facets: (NSArray*) facets
 | 
					 | 
				
			||||||
     examples: (NSArray*) examples;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,107 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGExampleSearchResults.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGExampleSearchResults
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)facets: (NSArray*) facets
 | 
					 | 
				
			||||||
    examples: (NSArray*) examples
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _facets = facets;
 | 
					 | 
				
			||||||
  _examples = examples;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        id facets_dict = dict[@"facets"];
 | 
					 | 
				
			||||||
        if([facets_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)facets_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)facets_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)facets_dict) {
 | 
					 | 
				
			||||||
                    SWGFacet* d = [[SWGFacet alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _facets = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _facets = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _facets = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        id examples_dict = dict[@"examples"];
 | 
					 | 
				
			||||||
        if([examples_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)examples_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)examples_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)examples_dict) {
 | 
					 | 
				
			||||||
                    SWGExample* d = [[SWGExample alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _examples = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _examples = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _examples = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_facets != nil){
 | 
					 | 
				
			||||||
        if([_facets isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGFacet *facets in (NSArray*)_facets) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)facets asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"facets"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_facets && [_facets isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_facets toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"facets"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_facets != nil) dict[@"facets"] = [(SWGObject*)_facets asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_examples != nil){
 | 
					 | 
				
			||||||
        if([_examples isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGExample *examples in (NSArray*)_examples) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)examples asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"examples"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_examples && [_examples isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_examples toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"examples"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_examples != nil) dict[@"examples"] = [(SWGObject*)_examples asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGExampleUsage : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) text: (NSString*) text;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,31 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGExampleUsage.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGExampleUsage
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)text: (NSString*) text
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,20 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGFacetValue.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGFacet : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* facetValues;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* name;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) facetValues: (NSArray*) facetValues
 | 
					 | 
				
			||||||
     name: (NSString*) name;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,71 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGFacet.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGFacet
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)facetValues: (NSArray*) facetValues
 | 
					 | 
				
			||||||
    name: (NSString*) name
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _facetValues = facetValues;
 | 
					 | 
				
			||||||
  _name = name;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        id facetValues_dict = dict[@"facetValues"];
 | 
					 | 
				
			||||||
        if([facetValues_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)facetValues_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)facetValues_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)facetValues_dict) {
 | 
					 | 
				
			||||||
                    SWGFacetValue* d = [[SWGFacetValue alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _facetValues = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _facetValues = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _facetValues = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _name = dict[@"name"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_facetValues != nil){
 | 
					 | 
				
			||||||
        if([_facetValues isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGFacetValue *facetValues in (NSArray*)_facetValues) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)facetValues asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"facetValues"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_facetValues && [_facetValues isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_facetValues toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"facetValues"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_facetValues != nil) dict[@"facetValues"] = [(SWGObject*)_facetValues asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_name != nil) dict[@"name"] = _name ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGFacetValue : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* count;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* value;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) count: (NSNumber*) count
 | 
					 | 
				
			||||||
     value: (NSString*) value;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGFacetValue.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGFacetValue
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)count: (NSNumber*) count
 | 
					 | 
				
			||||||
    value: (NSString*) value
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _count = count;
 | 
					 | 
				
			||||||
  _value = value;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _count = dict[@"count"]; 
 | 
					 | 
				
			||||||
        _value = dict[@"value"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_count != nil) dict[@"count"] = _count ;
 | 
					 | 
				
			||||||
        if(_value != nil) dict[@"value"] = _value ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,13 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGFile : NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic, readonly) NSString* name;
 | 
					 | 
				
			||||||
@property(nonatomic, readonly) NSString* mimeType;
 | 
					 | 
				
			||||||
@property(nonatomic, readonly) NSData* data;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithNameData: (NSString*) filename
 | 
					 | 
				
			||||||
               mimeType: (NSString*) mimeType
 | 
					 | 
				
			||||||
                   data: (NSData*) data;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    @end
 | 
					 | 
				
			||||||
@ -1,26 +0,0 @@
 | 
				
			|||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGFile
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@synthesize name = _name;
 | 
					 | 
				
			||||||
@synthesize mimeType = _mimeType;
 | 
					 | 
				
			||||||
@synthesize data = _data;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithNameData: (NSString*) filename
 | 
					 | 
				
			||||||
               mimeType: (NSString*) fileMimeType
 | 
					 | 
				
			||||||
                   data: (NSData*) data {
 | 
					 | 
				
			||||||
	self = [super init];
 | 
					 | 
				
			||||||
	if(self) {
 | 
					 | 
				
			||||||
		_name = filename;
 | 
					 | 
				
			||||||
		_mimeType = fileMimeType;
 | 
					 | 
				
			||||||
		_data = data;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGFrequency : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* count;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* year;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) count: (NSNumber*) count
 | 
					 | 
				
			||||||
     year: (NSNumber*) year;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGFrequency.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGFrequency
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)count: (NSNumber*) count
 | 
					 | 
				
			||||||
    year: (NSNumber*) year
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _count = count;
 | 
					 | 
				
			||||||
  _year = year;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _count = dict[@"count"]; 
 | 
					 | 
				
			||||||
        _year = dict[@"year"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_count != nil) dict[@"count"] = _count ;
 | 
					 | 
				
			||||||
        if(_year != nil) dict[@"year"] = _year ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,29 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGFrequency.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGFrequencySummary : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* unknownYearCount;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* totalCount;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* frequencyString;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* frequency;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) unknownYearCount: (NSNumber*) unknownYearCount
 | 
					 | 
				
			||||||
     totalCount: (NSNumber*) totalCount
 | 
					 | 
				
			||||||
     frequencyString: (NSString*) frequencyString
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     frequency: (NSArray*) frequency;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,83 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGFrequencySummary.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGFrequencySummary
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)unknownYearCount: (NSNumber*) unknownYearCount
 | 
					 | 
				
			||||||
    totalCount: (NSNumber*) totalCount
 | 
					 | 
				
			||||||
    frequencyString: (NSString*) frequencyString
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    frequency: (NSArray*) frequency
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _unknownYearCount = unknownYearCount;
 | 
					 | 
				
			||||||
  _totalCount = totalCount;
 | 
					 | 
				
			||||||
  _frequencyString = frequencyString;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _frequency = frequency;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _unknownYearCount = dict[@"unknownYearCount"]; 
 | 
					 | 
				
			||||||
        _totalCount = dict[@"totalCount"]; 
 | 
					 | 
				
			||||||
        _frequencyString = dict[@"frequencyString"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        id frequency_dict = dict[@"frequency"];
 | 
					 | 
				
			||||||
        if([frequency_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)frequency_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)frequency_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)frequency_dict) {
 | 
					 | 
				
			||||||
                    SWGFrequency* d = [[SWGFrequency alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _frequency = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _frequency = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _frequency = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_unknownYearCount != nil) dict[@"unknownYearCount"] = _unknownYearCount ;
 | 
					 | 
				
			||||||
        if(_totalCount != nil) dict[@"totalCount"] = _totalCount ;
 | 
					 | 
				
			||||||
        if(_frequencyString != nil) dict[@"frequencyString"] = _frequencyString ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_frequency != nil){
 | 
					 | 
				
			||||||
        if([_frequency isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGFrequency *frequency in (NSArray*)_frequency) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)frequency asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"frequency"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_frequency && [_frequency isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_frequency toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"frequency"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_frequency != nil) dict[@"frequency"] = [(SWGObject*)_frequency asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,19 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGLabel : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* type;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) text: (NSString*) text
 | 
					 | 
				
			||||||
     type: (NSString*) type;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGLabel.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGLabel
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)text: (NSString*) text
 | 
					 | 
				
			||||||
    type: (NSString*) type
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _type = type;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        _type = dict[@"type"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_type != nil) dict[@"type"] = _type ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,25 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGNote : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* noteType;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* appliesTo;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* value;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* pos;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) noteType: (NSString*) noteType
 | 
					 | 
				
			||||||
     appliesTo: (NSArray*) appliesTo
 | 
					 | 
				
			||||||
     value: (NSString*) value
 | 
					 | 
				
			||||||
     pos: (NSNumber*) pos;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,43 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGNote.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGNote
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)noteType: (NSString*) noteType
 | 
					 | 
				
			||||||
    appliesTo: (NSArray*) appliesTo
 | 
					 | 
				
			||||||
    value: (NSString*) value
 | 
					 | 
				
			||||||
    pos: (NSNumber*) pos
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _noteType = noteType;
 | 
					 | 
				
			||||||
  _appliesTo = appliesTo;
 | 
					 | 
				
			||||||
  _value = value;
 | 
					 | 
				
			||||||
  _pos = pos;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _noteType = dict[@"noteType"]; 
 | 
					 | 
				
			||||||
        _appliesTo = dict[@"appliesTo"]; 
 | 
					 | 
				
			||||||
        _value = dict[@"value"]; 
 | 
					 | 
				
			||||||
        _pos = dict[@"pos"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_noteType != nil) dict[@"noteType"] = _noteType ;
 | 
					 | 
				
			||||||
        if(_appliesTo != nil) dict[@"appliesTo"] = _appliesTo ;
 | 
					 | 
				
			||||||
        if(_value != nil) dict[@"value"] = _value ;
 | 
					 | 
				
			||||||
        if(_pos != nil) dict[@"pos"] = _pos ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,6 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGObject : NSObject
 | 
					 | 
				
			||||||
- (id) initWithValues:(NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,17 +0,0 @@
 | 
				
			|||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues:(NSDictionary*)dict {
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary{
 | 
					 | 
				
			||||||
    return [NSDictionary init];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (NSString*)description {
 | 
					 | 
				
			||||||
    return [NSString stringWithFormat:@"%@ %@", [super description], [self asDictionary]];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,34 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGRelated : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* label1;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* relationshipType;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* label2;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* label3;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* words;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* gram;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* label4;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) label1: (NSString*) label1
 | 
					 | 
				
			||||||
     relationshipType: (NSString*) relationshipType
 | 
					 | 
				
			||||||
     label2: (NSString*) label2
 | 
					 | 
				
			||||||
     label3: (NSString*) label3
 | 
					 | 
				
			||||||
     words: (NSArray*) words
 | 
					 | 
				
			||||||
     gram: (NSString*) gram
 | 
					 | 
				
			||||||
     label4: (NSString*) label4;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,55 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGRelated.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGRelated
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)label1: (NSString*) label1
 | 
					 | 
				
			||||||
    relationshipType: (NSString*) relationshipType
 | 
					 | 
				
			||||||
    label2: (NSString*) label2
 | 
					 | 
				
			||||||
    label3: (NSString*) label3
 | 
					 | 
				
			||||||
    words: (NSArray*) words
 | 
					 | 
				
			||||||
    gram: (NSString*) gram
 | 
					 | 
				
			||||||
    label4: (NSString*) label4
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _label1 = label1;
 | 
					 | 
				
			||||||
  _relationshipType = relationshipType;
 | 
					 | 
				
			||||||
  _label2 = label2;
 | 
					 | 
				
			||||||
  _label3 = label3;
 | 
					 | 
				
			||||||
  _words = words;
 | 
					 | 
				
			||||||
  _gram = gram;
 | 
					 | 
				
			||||||
  _label4 = label4;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _label1 = dict[@"label1"]; 
 | 
					 | 
				
			||||||
        _relationshipType = dict[@"relationshipType"]; 
 | 
					 | 
				
			||||||
        _label2 = dict[@"label2"]; 
 | 
					 | 
				
			||||||
        _label3 = dict[@"label3"]; 
 | 
					 | 
				
			||||||
        _words = dict[@"words"]; 
 | 
					 | 
				
			||||||
        _gram = dict[@"gram"]; 
 | 
					 | 
				
			||||||
        _label4 = dict[@"label4"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_label1 != nil) dict[@"label1"] = _label1 ;
 | 
					 | 
				
			||||||
        if(_relationshipType != nil) dict[@"relationshipType"] = _relationshipType ;
 | 
					 | 
				
			||||||
        if(_label2 != nil) dict[@"label2"] = _label2 ;
 | 
					 | 
				
			||||||
        if(_label3 != nil) dict[@"label3"] = _label3 ;
 | 
					 | 
				
			||||||
        if(_words != nil) dict[@"words"] = _words ;
 | 
					 | 
				
			||||||
        if(_gram != nil) dict[@"gram"] = _gram ;
 | 
					 | 
				
			||||||
        if(_label4 != nil) dict[@"label4"] = _label4 ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,46 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGScoredWord : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* position;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* docTermCount;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* lemma;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* wordType;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* score;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* sentenceId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* stopword;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* baseWordScore;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* partOfSpeech;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) position: (NSNumber*) position
 | 
					 | 
				
			||||||
     _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     docTermCount: (NSNumber*) docTermCount
 | 
					 | 
				
			||||||
     lemma: (NSString*) lemma
 | 
					 | 
				
			||||||
     wordType: (NSString*) wordType
 | 
					 | 
				
			||||||
     score: (NSNumber*) score
 | 
					 | 
				
			||||||
     sentenceId: (NSNumber*) sentenceId
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     stopword: (NSNumber*) stopword
 | 
					 | 
				
			||||||
     baseWordScore: (NSNumber*) baseWordScore
 | 
					 | 
				
			||||||
     partOfSpeech: (NSString*) partOfSpeech;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,71 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGScoredWord.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGScoredWord
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)position: (NSNumber*) position
 | 
					 | 
				
			||||||
    _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    docTermCount: (NSNumber*) docTermCount
 | 
					 | 
				
			||||||
    lemma: (NSString*) lemma
 | 
					 | 
				
			||||||
    wordType: (NSString*) wordType
 | 
					 | 
				
			||||||
    score: (NSNumber*) score
 | 
					 | 
				
			||||||
    sentenceId: (NSNumber*) sentenceId
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    stopword: (NSNumber*) stopword
 | 
					 | 
				
			||||||
    baseWordScore: (NSNumber*) baseWordScore
 | 
					 | 
				
			||||||
    partOfSpeech: (NSString*) partOfSpeech
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _position = position;
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _docTermCount = docTermCount;
 | 
					 | 
				
			||||||
  _lemma = lemma;
 | 
					 | 
				
			||||||
  _wordType = wordType;
 | 
					 | 
				
			||||||
  _score = score;
 | 
					 | 
				
			||||||
  _sentenceId = sentenceId;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _stopword = stopword;
 | 
					 | 
				
			||||||
  _baseWordScore = baseWordScore;
 | 
					 | 
				
			||||||
  _partOfSpeech = partOfSpeech;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _position = dict[@"position"]; 
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _docTermCount = dict[@"docTermCount"]; 
 | 
					 | 
				
			||||||
        _lemma = dict[@"lemma"]; 
 | 
					 | 
				
			||||||
        _wordType = dict[@"wordType"]; 
 | 
					 | 
				
			||||||
        _score = dict[@"score"]; 
 | 
					 | 
				
			||||||
        _sentenceId = dict[@"sentenceId"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        _stopword = dict[@"stopword"]; 
 | 
					 | 
				
			||||||
        _baseWordScore = dict[@"baseWordScore"]; 
 | 
					 | 
				
			||||||
        _partOfSpeech = dict[@"partOfSpeech"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_position != nil) dict[@"position"] = _position ;
 | 
					 | 
				
			||||||
        if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_docTermCount != nil) dict[@"docTermCount"] = _docTermCount ;
 | 
					 | 
				
			||||||
        if(_lemma != nil) dict[@"lemma"] = _lemma ;
 | 
					 | 
				
			||||||
        if(_wordType != nil) dict[@"wordType"] = _wordType ;
 | 
					 | 
				
			||||||
        if(_score != nil) dict[@"score"] = _score ;
 | 
					 | 
				
			||||||
        if(_sentenceId != nil) dict[@"sentenceId"] = _sentenceId ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_stopword != nil) dict[@"stopword"] = _stopword ;
 | 
					 | 
				
			||||||
        if(_baseWordScore != nil) dict[@"baseWordScore"] = _baseWordScore ;
 | 
					 | 
				
			||||||
        if(_partOfSpeech != nil) dict[@"partOfSpeech"] = _partOfSpeech ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGScrabbleScoreResult : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* value;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) value: (NSNumber*) value;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,31 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGScrabbleScoreResult.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGScrabbleScoreResult
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)value: (NSNumber*) value
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _value = value;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _value = dict[@"value"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_value != nil) dict[@"value"] = _value ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,32 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGScoredWord.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGSentence : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* hasScoredWords;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* scoredWords;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* display;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* rating;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* documentMetadataId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) hasScoredWords: (NSNumber*) hasScoredWords
 | 
					 | 
				
			||||||
     _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     scoredWords: (NSArray*) scoredWords
 | 
					 | 
				
			||||||
     display: (NSString*) display
 | 
					 | 
				
			||||||
     rating: (NSNumber*) rating
 | 
					 | 
				
			||||||
     documentMetadataId: (NSNumber*) documentMetadataId;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,87 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGSentence.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGSentence
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)hasScoredWords: (NSNumber*) hasScoredWords
 | 
					 | 
				
			||||||
    _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    scoredWords: (NSArray*) scoredWords
 | 
					 | 
				
			||||||
    display: (NSString*) display
 | 
					 | 
				
			||||||
    rating: (NSNumber*) rating
 | 
					 | 
				
			||||||
    documentMetadataId: (NSNumber*) documentMetadataId
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _hasScoredWords = hasScoredWords;
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _scoredWords = scoredWords;
 | 
					 | 
				
			||||||
  _display = display;
 | 
					 | 
				
			||||||
  _rating = rating;
 | 
					 | 
				
			||||||
  _documentMetadataId = documentMetadataId;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _hasScoredWords = dict[@"hasScoredWords"]; 
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        id scoredWords_dict = dict[@"scoredWords"];
 | 
					 | 
				
			||||||
        if([scoredWords_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)scoredWords_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)scoredWords_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)scoredWords_dict) {
 | 
					 | 
				
			||||||
                    SWGScoredWord* d = [[SWGScoredWord alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _scoredWords = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _scoredWords = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _scoredWords = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _display = dict[@"display"]; 
 | 
					 | 
				
			||||||
        _rating = dict[@"rating"]; 
 | 
					 | 
				
			||||||
        _documentMetadataId = dict[@"documentMetadataId"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_hasScoredWords != nil) dict[@"hasScoredWords"] = _hasScoredWords ;
 | 
					 | 
				
			||||||
        if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_scoredWords != nil){
 | 
					 | 
				
			||||||
        if([_scoredWords isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGScoredWord *scoredWords in (NSArray*)_scoredWords) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)scoredWords asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"scoredWords"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_scoredWords && [_scoredWords isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_scoredWords toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"scoredWords"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_scoredWords != nil) dict[@"scoredWords"] = [(SWGObject*)_scoredWords asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_display != nil) dict[@"display"] = _display ;
 | 
					 | 
				
			||||||
        if(_rating != nil) dict[@"rating"] = _rating ;
 | 
					 | 
				
			||||||
        if(_documentMetadataId != nil) dict[@"documentMetadataId"] = _documentMetadataId ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,25 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGSimpleDefinition : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* source;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* note;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* partOfSpeech;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) text: (NSString*) text
 | 
					 | 
				
			||||||
     source: (NSString*) source
 | 
					 | 
				
			||||||
     note: (NSString*) note
 | 
					 | 
				
			||||||
     partOfSpeech: (NSString*) partOfSpeech;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,43 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGSimpleDefinition.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGSimpleDefinition
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)text: (NSString*) text
 | 
					 | 
				
			||||||
    source: (NSString*) source
 | 
					 | 
				
			||||||
    note: (NSString*) note
 | 
					 | 
				
			||||||
    partOfSpeech: (NSString*) partOfSpeech
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _source = source;
 | 
					 | 
				
			||||||
  _note = note;
 | 
					 | 
				
			||||||
  _partOfSpeech = partOfSpeech;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        _source = dict[@"source"]; 
 | 
					 | 
				
			||||||
        _note = dict[@"note"]; 
 | 
					 | 
				
			||||||
        _partOfSpeech = dict[@"partOfSpeech"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_source != nil) dict[@"source"] = _source ;
 | 
					 | 
				
			||||||
        if(_note != nil) dict[@"note"] = _note ;
 | 
					 | 
				
			||||||
        if(_partOfSpeech != nil) dict[@"partOfSpeech"] = _partOfSpeech ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,25 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGSimpleExample : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* title;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* url;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     title: (NSString*) title
 | 
					 | 
				
			||||||
     text: (NSString*) text
 | 
					 | 
				
			||||||
     url: (NSString*) url;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,43 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGSimpleExample.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGSimpleExample
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    title: (NSString*) title
 | 
					 | 
				
			||||||
    text: (NSString*) text
 | 
					 | 
				
			||||||
    url: (NSString*) url
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _title = title;
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _url = url;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _title = dict[@"title"]; 
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        _url = dict[@"url"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_title != nil) dict[@"title"] = _title ;
 | 
					 | 
				
			||||||
        if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_url != nil) dict[@"url"] = _url ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,16 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGStringValue : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) word: (NSString*) word;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,31 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGStringValue.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGStringValue
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)word: (NSString*) word
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,22 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGSyllable : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* text;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* seq;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* type;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) text: (NSString*) text
 | 
					 | 
				
			||||||
     seq: (NSNumber*) seq
 | 
					 | 
				
			||||||
     type: (NSString*) type;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,39 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGSyllable.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGSyllable
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)text: (NSString*) text
 | 
					 | 
				
			||||||
    seq: (NSNumber*) seq
 | 
					 | 
				
			||||||
    type: (NSString*) type
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _text = text;
 | 
					 | 
				
			||||||
  _seq = seq;
 | 
					 | 
				
			||||||
  _type = type;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _text = dict[@"text"]; 
 | 
					 | 
				
			||||||
        _seq = dict[@"seq"]; 
 | 
					 | 
				
			||||||
        _type = dict[@"type"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_text != nil) dict[@"text"] = _text ;
 | 
					 | 
				
			||||||
        if(_seq != nil) dict[@"seq"] = _seq ;
 | 
					 | 
				
			||||||
        if(_type != nil) dict[@"type"] = _type ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,22 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGTextPron : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* raw;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* seq;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* rawType;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) raw: (NSString*) raw
 | 
					 | 
				
			||||||
     seq: (NSNumber*) seq
 | 
					 | 
				
			||||||
     rawType: (NSString*) rawType;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,39 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGTextPron.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGTextPron
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)raw: (NSString*) raw
 | 
					 | 
				
			||||||
    seq: (NSNumber*) seq
 | 
					 | 
				
			||||||
    rawType: (NSString*) rawType
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _raw = raw;
 | 
					 | 
				
			||||||
  _seq = seq;
 | 
					 | 
				
			||||||
  _rawType = rawType;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _raw = dict[@"raw"]; 
 | 
					 | 
				
			||||||
        _seq = dict[@"seq"]; 
 | 
					 | 
				
			||||||
        _rawType = dict[@"rawType"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_raw != nil) dict[@"raw"] = _raw ;
 | 
					 | 
				
			||||||
        if(_seq != nil) dict[@"seq"] = _seq ;
 | 
					 | 
				
			||||||
        if(_rawType != nil) dict[@"rawType"] = _rawType ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,37 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGUser : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* username;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* email;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* status;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* faceBookId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* userName;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* displayName;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* password;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     username: (NSString*) username
 | 
					 | 
				
			||||||
     email: (NSString*) email
 | 
					 | 
				
			||||||
     status: (NSNumber*) status
 | 
					 | 
				
			||||||
     faceBookId: (NSString*) faceBookId
 | 
					 | 
				
			||||||
     userName: (NSString*) userName
 | 
					 | 
				
			||||||
     displayName: (NSString*) displayName
 | 
					 | 
				
			||||||
     password: (NSString*) password;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,59 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGUser.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGUser
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    username: (NSString*) username
 | 
					 | 
				
			||||||
    email: (NSString*) email
 | 
					 | 
				
			||||||
    status: (NSNumber*) status
 | 
					 | 
				
			||||||
    faceBookId: (NSString*) faceBookId
 | 
					 | 
				
			||||||
    userName: (NSString*) userName
 | 
					 | 
				
			||||||
    displayName: (NSString*) displayName
 | 
					 | 
				
			||||||
    password: (NSString*) password
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _username = username;
 | 
					 | 
				
			||||||
  _email = email;
 | 
					 | 
				
			||||||
  _status = status;
 | 
					 | 
				
			||||||
  _faceBookId = faceBookId;
 | 
					 | 
				
			||||||
  _userName = userName;
 | 
					 | 
				
			||||||
  _displayName = displayName;
 | 
					 | 
				
			||||||
  _password = password;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _username = dict[@"username"]; 
 | 
					 | 
				
			||||||
        _email = dict[@"email"]; 
 | 
					 | 
				
			||||||
        _status = dict[@"status"]; 
 | 
					 | 
				
			||||||
        _faceBookId = dict[@"faceBookId"]; 
 | 
					 | 
				
			||||||
        _userName = dict[@"userName"]; 
 | 
					 | 
				
			||||||
        _displayName = dict[@"displayName"]; 
 | 
					 | 
				
			||||||
        _password = dict[@"password"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_username != nil) dict[@"username"] = _username ;
 | 
					 | 
				
			||||||
        if(_email != nil) dict[@"email"] = _email ;
 | 
					 | 
				
			||||||
        if(_status != nil) dict[@"status"] = _status ;
 | 
					 | 
				
			||||||
        if(_faceBookId != nil) dict[@"faceBookId"] = _faceBookId ;
 | 
					 | 
				
			||||||
        if(_userName != nil) dict[@"userName"] = _userName ;
 | 
					 | 
				
			||||||
        if(_displayName != nil) dict[@"displayName"] = _displayName ;
 | 
					 | 
				
			||||||
        if(_password != nil) dict[@"password"] = _password ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,195 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGFrequencySummary.h"
 | 
					 | 
				
			||||||
#import "SWGBigram.h"
 | 
					 | 
				
			||||||
#import "SWGWordObject.h"
 | 
					 | 
				
			||||||
#import "SWGExampleSearchResults.h"
 | 
					 | 
				
			||||||
#import "SWGExample.h"
 | 
					 | 
				
			||||||
#import "SWGScrabbleScoreResult.h"
 | 
					 | 
				
			||||||
#import "SWGTextPron.h"
 | 
					 | 
				
			||||||
#import "SWGSyllable.h"
 | 
					 | 
				
			||||||
#import "SWGRelated.h"
 | 
					 | 
				
			||||||
#import "SWGDefinition.h"
 | 
					 | 
				
			||||||
#import "SWGAudioFile.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordApi: NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize;
 | 
					 | 
				
			||||||
+(SWGWordApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)basePath;
 | 
					 | 
				
			||||||
+(NSString*) getBasePath;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns examples for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to return examples for
 | 
					 | 
				
			||||||
 @param includeDuplicates Show duplicate examples from different sources
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param skip Results to skip
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getExamplesWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        includeDuplicates:(NSString*) includeDuplicates 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGExampleSearchResults* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Given a word as a string, returns the WordObject that represents it
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word String value of WordObject to return
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param includeSuggestions Return suggestions (for correct spelling, case variants, etc.)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        includeSuggestions:(NSString*) includeSuggestions 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordObject* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Return definitions for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to return definitions for
 | 
					 | 
				
			||||||
 @param partOfSpeech CSV list of part-of-speech types
 | 
					 | 
				
			||||||
 @param sourceDictionaries Source dictionary to return definitions from.  If 'all' is received, results are returned from all sources. If multiple values are received (e.g. 'century,wiktionary'), results are returned from the first specified dictionary that has definitions. If left blank, results are returned from the first dictionary that has definitions. By default, dictionaries are searched in this order: ahd, wiktionary, webster, century, wordnet
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 @param includeRelated Return related words with definitions
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param includeTags Return a closed set of XML tags in response
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getDefinitionsWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        partOfSpeech:(NSString*) partOfSpeech 
 | 
					 | 
				
			||||||
        sourceDictionaries:(NSString*) sourceDictionaries 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        includeRelated:(NSString*) includeRelated 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        includeTags:(NSString*) includeTags 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns a top example for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to fetch examples for
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getTopExampleWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGExample* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Given a word as a string, returns relationships from the Word Graph
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to fetch relationships for
 | 
					 | 
				
			||||||
 @param relationshipTypes Limits the total results per type of relationship type
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param limitPerRelationshipType Restrict to the supplied relatinship types
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getRelatedWordsWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        relationshipTypes:(NSString*) relationshipTypes 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        limitPerRelationshipType:(NSNumber*) limitPerRelationshipType 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns text pronunciations for a given word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to get pronunciations for
 | 
					 | 
				
			||||||
 @param sourceDictionary Get from a single dictionary
 | 
					 | 
				
			||||||
 @param typeFormat Text pronunciation type
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getTextPronunciationsWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        sourceDictionary:(NSString*) sourceDictionary 
 | 
					 | 
				
			||||||
        typeFormat:(NSString*) typeFormat 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns syllable information for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to get syllables for
 | 
					 | 
				
			||||||
 @param sourceDictionary Get from a single dictionary. Valid options: ahd, century, wiktionary, webster, and wordnet.
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return a correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getHyphenationWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        sourceDictionary:(NSString*) sourceDictionary 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns word usage over time
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to return
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 @param startYear Starting Year
 | 
					 | 
				
			||||||
 @param endYear Ending Year
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordFrequencyWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        startYear:(NSNumber*) startYear 
 | 
					 | 
				
			||||||
        endYear:(NSNumber*) endYear 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGFrequencySummary* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches bi-gram phrases for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to fetch phrases for
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 @param wlmi Minimum WLMI for the phrase
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getPhrasesWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        wlmi:(NSNumber*) wlmi 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches etymology data
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to return
 | 
					 | 
				
			||||||
 @param useCanonical If true will try to return the correct word root ('cats' -> 'cat'). If false returns exactly what was requested.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getEtymologiesWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches audio metadata for a word.
 | 
					 | 
				
			||||||
 The metadata includes a time-expiring fileUrl which allows reading the audio file directly from the API.  Currently only audio pronunciations from the American Heritage Dictionary in mp3 format are supported.
 | 
					 | 
				
			||||||
 @param word Word to get audio for.
 | 
					 | 
				
			||||||
 @param useCanonical Use the canonical form of the word
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getAudioWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns the Scrabble score for a word
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param word Word to get scrabble score for.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getScrabbleScoreWithCompletionBlock :(NSString*) word 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGScrabbleScoreResult* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,691 +0,0 @@
 | 
				
			|||||||
#import "SWGWordApi.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGFrequencySummary.h"
 | 
					 | 
				
			||||||
#import "SWGBigram.h"
 | 
					 | 
				
			||||||
#import "SWGWordObject.h"
 | 
					 | 
				
			||||||
#import "SWGExampleSearchResults.h"
 | 
					 | 
				
			||||||
#import "SWGExample.h"
 | 
					 | 
				
			||||||
#import "SWGScrabbleScoreResult.h"
 | 
					 | 
				
			||||||
#import "SWGTextPron.h"
 | 
					 | 
				
			||||||
#import "SWGSyllable.h"
 | 
					 | 
				
			||||||
#import "SWGRelated.h"
 | 
					 | 
				
			||||||
#import "SWGDefinition.h"
 | 
					 | 
				
			||||||
#import "SWGAudioFile.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordApi
 | 
					 | 
				
			||||||
static NSString * basePath = @"http://api.wordnik.com/v4";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGWordApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key {
 | 
					 | 
				
			||||||
    static SWGWordApi* singletonAPI = nil;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (singletonAPI == nil) {
 | 
					 | 
				
			||||||
        singletonAPI = [[SWGWordApi alloc] init];
 | 
					 | 
				
			||||||
        [singletonAPI addHeader:headerValue forKey:key];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return singletonAPI;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)path {
 | 
					 | 
				
			||||||
    basePath = path;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) getBasePath {
 | 
					 | 
				
			||||||
    return basePath;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(SWGApiClient*) apiClient {
 | 
					 | 
				
			||||||
    return [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    [self apiClient];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
           forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize {
 | 
					 | 
				
			||||||
    return [SWGApiClient requestQueueSize];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getExamplesWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        includeDuplicates:(NSString*) includeDuplicates
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGExampleSearchResults* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/examples", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(includeDuplicates != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeDuplicates"] = includeDuplicates;
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(skip != nil)
 | 
					 | 
				
			||||||
        queryParams[@"skip"] = skip;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGExampleSearchResults *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGExampleSearchResults alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        includeSuggestions:(NSString*) includeSuggestions
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordObject* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(includeSuggestions != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeSuggestions"] = includeSuggestions;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordObject *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordObject alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getDefinitionsWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        partOfSpeech:(NSString*) partOfSpeech
 | 
					 | 
				
			||||||
        sourceDictionaries:(NSString*) sourceDictionaries
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        includeRelated:(NSString*) includeRelated
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        includeTags:(NSString*) includeTags
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/definitions", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    if(partOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"partOfSpeech"] = partOfSpeech;
 | 
					 | 
				
			||||||
    if(includeRelated != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeRelated"] = includeRelated;
 | 
					 | 
				
			||||||
    if(sourceDictionaries != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sourceDictionaries"] = sourceDictionaries;
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(includeTags != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeTags"] = includeTags;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGDefinition* d = [[SWGDefinition alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getTopExampleWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGExample* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/topExample", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGExample *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGExample alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getRelatedWordsWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        relationshipTypes:(NSString*) relationshipTypes
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        limitPerRelationshipType:(NSNumber*) limitPerRelationshipType
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/relatedWords", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(relationshipTypes != nil)
 | 
					 | 
				
			||||||
        queryParams[@"relationshipTypes"] = relationshipTypes;
 | 
					 | 
				
			||||||
    if(limitPerRelationshipType != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limitPerRelationshipType"] = limitPerRelationshipType;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGRelated* d = [[SWGRelated alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getTextPronunciationsWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        sourceDictionary:(NSString*) sourceDictionary
 | 
					 | 
				
			||||||
        typeFormat:(NSString*) typeFormat
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/pronunciations", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(sourceDictionary != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sourceDictionary"] = sourceDictionary;
 | 
					 | 
				
			||||||
    if(typeFormat != nil)
 | 
					 | 
				
			||||||
        queryParams[@"typeFormat"] = typeFormat;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGTextPron* d = [[SWGTextPron alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getHyphenationWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        sourceDictionary:(NSString*) sourceDictionary
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/hyphenation", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(sourceDictionary != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sourceDictionary"] = sourceDictionary;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGSyllable* d = [[SWGSyllable alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordFrequencyWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        startYear:(NSNumber*) startYear
 | 
					 | 
				
			||||||
        endYear:(NSNumber*) endYear
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGFrequencySummary* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/frequency", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(startYear != nil)
 | 
					 | 
				
			||||||
        queryParams[@"startYear"] = startYear;
 | 
					 | 
				
			||||||
    if(endYear != nil)
 | 
					 | 
				
			||||||
        queryParams[@"endYear"] = endYear;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGFrequencySummary *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGFrequencySummary alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getPhrasesWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        wlmi:(NSNumber*) wlmi
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/phrases", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    if(wlmi != nil)
 | 
					 | 
				
			||||||
        queryParams[@"wlmi"] = wlmi;
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGBigram* d = [[SWGBigram alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getEtymologiesWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/etymologies", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                // NSString
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                                NSString* d = [[NSString alloc]initWithString: data];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getAudioWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        useCanonical:(NSString*) useCanonical
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/audio", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(useCanonical != nil)
 | 
					 | 
				
			||||||
        queryParams[@"useCanonical"] = useCanonical;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGAudioFile* d = [[SWGAudioFile alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getScrabbleScoreWithCompletionBlock:(NSString*) word
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGScrabbleScoreResult* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/word.{format}/{word}/scrabbleScore", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"word", @"}"]] withString: [SWGApiClient escape:word]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(word == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGScrabbleScoreResult *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGScrabbleScoreResult alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,47 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordList : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* permalink;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* name;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* createdAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* updatedAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* lastActivityAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* username;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* userId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* description;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* numberWordsInList;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* type;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     permalink: (NSString*) permalink
 | 
					 | 
				
			||||||
     name: (NSString*) name
 | 
					 | 
				
			||||||
     createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
     updatedAt: (SWGDate*) updatedAt
 | 
					 | 
				
			||||||
     lastActivityAt: (SWGDate*) lastActivityAt
 | 
					 | 
				
			||||||
     username: (NSString*) username
 | 
					 | 
				
			||||||
     userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
     description: (NSString*) description
 | 
					 | 
				
			||||||
     numberWordsInList: (NSNumber*) numberWordsInList
 | 
					 | 
				
			||||||
     type: (NSString*) type;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,128 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordList
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    permalink: (NSString*) permalink
 | 
					 | 
				
			||||||
    name: (NSString*) name
 | 
					 | 
				
			||||||
    createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
    updatedAt: (SWGDate*) updatedAt
 | 
					 | 
				
			||||||
    lastActivityAt: (SWGDate*) lastActivityAt
 | 
					 | 
				
			||||||
    username: (NSString*) username
 | 
					 | 
				
			||||||
    userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
    description: (NSString*) description
 | 
					 | 
				
			||||||
    numberWordsInList: (NSNumber*) numberWordsInList
 | 
					 | 
				
			||||||
    type: (NSString*) type
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _permalink = permalink;
 | 
					 | 
				
			||||||
  _name = name;
 | 
					 | 
				
			||||||
  _createdAt = createdAt;
 | 
					 | 
				
			||||||
  _updatedAt = updatedAt;
 | 
					 | 
				
			||||||
  _lastActivityAt = lastActivityAt;
 | 
					 | 
				
			||||||
  _username = username;
 | 
					 | 
				
			||||||
  _userId = userId;
 | 
					 | 
				
			||||||
  _description = description;
 | 
					 | 
				
			||||||
  _numberWordsInList = numberWordsInList;
 | 
					 | 
				
			||||||
  _type = type;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _permalink = dict[@"permalink"]; 
 | 
					 | 
				
			||||||
        _name = dict[@"name"]; 
 | 
					 | 
				
			||||||
        id createdAt_dict = dict[@"createdAt"];
 | 
					 | 
				
			||||||
        if(createdAt_dict != nil)
 | 
					 | 
				
			||||||
            _createdAt = [[SWGDate alloc]initWithValues:createdAt_dict];
 | 
					 | 
				
			||||||
        id updatedAt_dict = dict[@"updatedAt"];
 | 
					 | 
				
			||||||
        if(updatedAt_dict != nil)
 | 
					 | 
				
			||||||
            _updatedAt = [[SWGDate alloc]initWithValues:updatedAt_dict];
 | 
					 | 
				
			||||||
        id lastActivityAt_dict = dict[@"lastActivityAt"];
 | 
					 | 
				
			||||||
        if(lastActivityAt_dict != nil)
 | 
					 | 
				
			||||||
            _lastActivityAt = [[SWGDate alloc]initWithValues:lastActivityAt_dict];
 | 
					 | 
				
			||||||
        _username = dict[@"username"]; 
 | 
					 | 
				
			||||||
        _userId = dict[@"userId"]; 
 | 
					 | 
				
			||||||
        _description = dict[@"description"]; 
 | 
					 | 
				
			||||||
        _numberWordsInList = dict[@"numberWordsInList"]; 
 | 
					 | 
				
			||||||
        _type = dict[@"type"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_permalink != nil) dict[@"permalink"] = _permalink ;
 | 
					 | 
				
			||||||
        if(_name != nil) dict[@"name"] = _name ;
 | 
					 | 
				
			||||||
        if(_createdAt != nil){
 | 
					 | 
				
			||||||
        if([_createdAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *createdAt in (NSArray*)_createdAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)createdAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"createdAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_createdAt && [_createdAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_createdAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"createdAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_createdAt != nil) dict[@"createdAt"] = [(SWGObject*)_createdAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_updatedAt != nil){
 | 
					 | 
				
			||||||
        if([_updatedAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *updatedAt in (NSArray*)_updatedAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)updatedAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"updatedAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_updatedAt && [_updatedAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_updatedAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"updatedAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_updatedAt != nil) dict[@"updatedAt"] = [(SWGObject*)_updatedAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_lastActivityAt != nil){
 | 
					 | 
				
			||||||
        if([_lastActivityAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *lastActivityAt in (NSArray*)_lastActivityAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)lastActivityAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"lastActivityAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_lastActivityAt && [_lastActivityAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_lastActivityAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"lastActivityAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_lastActivityAt != nil) dict[@"lastActivityAt"] = [(SWGObject*)_lastActivityAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_username != nil) dict[@"username"] = _username ;
 | 
					 | 
				
			||||||
        if(_userId != nil) dict[@"userId"] = _userId ;
 | 
					 | 
				
			||||||
        if(_description != nil) dict[@"description"] = _description ;
 | 
					 | 
				
			||||||
        if(_numberWordsInList != nil) dict[@"numberWordsInList"] = _numberWordsInList ;
 | 
					 | 
				
			||||||
        if(_type != nil) dict[@"type"] = _type ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,95 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGWordListWord.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
#import "SWGStringValue.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordListApi: NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize;
 | 
					 | 
				
			||||||
+(SWGWordListApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)basePath;
 | 
					 | 
				
			||||||
+(NSString*) getBasePath;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Updates an existing WordList
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink permalink of WordList to update
 | 
					 | 
				
			||||||
 @param body Updated WordList
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) updateWordListWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        body:(SWGWordList*) body 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Deletes an existing WordList
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink ID of WordList to delete
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) deleteWordListWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches a WordList by ID
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink permalink of WordList to fetch
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListByPermalinkWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordList* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Adds words to a WordList
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink permalink of WordList to user
 | 
					 | 
				
			||||||
 @param body Array of words to add to WordList
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) addWordsToWordListWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        body:(NSArray*) body 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Fetches words in a WordList
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink ID of WordList to use
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 @param sortBy Field to sort by
 | 
					 | 
				
			||||||
 @param sortOrder Direction to sort
 | 
					 | 
				
			||||||
 @param skip Results to skip
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListWordsWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy 
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder 
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Removes words from a WordList
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param permalink permalink of WordList to use
 | 
					 | 
				
			||||||
 @param body Words to remove from WordList
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) deleteWordsFromWordListWithCompletionBlock :(NSString*) permalink 
 | 
					 | 
				
			||||||
        body:(NSArray*) body 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,451 +0,0 @@
 | 
				
			|||||||
#import "SWGWordListApi.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGWordListWord.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
#import "SWGStringValue.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordListApi
 | 
					 | 
				
			||||||
static NSString * basePath = @"http://api.wordnik.com/v4";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGWordListApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key {
 | 
					 | 
				
			||||||
    static SWGWordListApi* singletonAPI = nil;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (singletonAPI == nil) {
 | 
					 | 
				
			||||||
        singletonAPI = [[SWGWordListApi alloc] init];
 | 
					 | 
				
			||||||
        [singletonAPI addHeader:headerValue forKey:key];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return singletonAPI;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)path {
 | 
					 | 
				
			||||||
    basePath = path;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) getBasePath {
 | 
					 | 
				
			||||||
    return basePath;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(SWGApiClient*) apiClient {
 | 
					 | 
				
			||||||
    return [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    [self apiClient];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
           forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize {
 | 
					 | 
				
			||||||
    return [SWGApiClient requestQueueSize];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) updateWordListWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        body:(SWGWordList*) body
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(body != nil && [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
        NSMutableArray * objs = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
        for (id dict in (NSArray*)body) {
 | 
					 | 
				
			||||||
            if([dict respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
                [objs addObject:[(SWGObject*)dict asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else{
 | 
					 | 
				
			||||||
                [objs addObject:dict];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        bodyDictionary = objs;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
        bodyDictionary = [(SWGObject*)body asDictionary];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass:[NSString class]]) {
 | 
					 | 
				
			||||||
        // convert it to a dictionary
 | 
					 | 
				
			||||||
        NSError * error;
 | 
					 | 
				
			||||||
        NSString * str = (NSString*)body;
 | 
					 | 
				
			||||||
        NSDictionary *JSON =
 | 
					 | 
				
			||||||
            [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding]
 | 
					 | 
				
			||||||
                                            options:NSJSONReadingMutableContainers
 | 
					 | 
				
			||||||
                                              error:&error];
 | 
					 | 
				
			||||||
        bodyDictionary = JSON;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass: [SWGFile class]]) {
 | 
					 | 
				
			||||||
        requestContentType = @"form-data";
 | 
					 | 
				
			||||||
        bodyDictionary = body;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else{
 | 
					 | 
				
			||||||
        NSLog(@"don't know what to do with %@", body);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client stringWithCompletionBlock:requestUrl 
 | 
					 | 
				
			||||||
                                             method:@"PUT" 
 | 
					 | 
				
			||||||
                                        queryParams:queryParams 
 | 
					 | 
				
			||||||
                                               body:bodyDictionary 
 | 
					 | 
				
			||||||
                                       headerParams:headerParams
 | 
					 | 
				
			||||||
                                 requestContentType: requestContentType
 | 
					 | 
				
			||||||
                                responseContentType: responseContentType
 | 
					 | 
				
			||||||
                                    completionBlock:^(NSString *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(error);
 | 
					 | 
				
			||||||
                            return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(nil);
 | 
					 | 
				
			||||||
                    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) deleteWordListWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client stringWithCompletionBlock:requestUrl 
 | 
					 | 
				
			||||||
                                             method:@"DELETE" 
 | 
					 | 
				
			||||||
                                        queryParams:queryParams 
 | 
					 | 
				
			||||||
                                               body:bodyDictionary 
 | 
					 | 
				
			||||||
                                       headerParams:headerParams
 | 
					 | 
				
			||||||
                                 requestContentType: requestContentType
 | 
					 | 
				
			||||||
                                responseContentType: responseContentType
 | 
					 | 
				
			||||||
                                    completionBlock:^(NSString *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(error);
 | 
					 | 
				
			||||||
                            return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(nil);
 | 
					 | 
				
			||||||
                    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListByPermalinkWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordList* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordList *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordList alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) addWordsToWordListWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        body:(NSArray*) body
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}/words", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(body != nil && [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
        NSMutableArray * objs = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
        for (id dict in (NSArray*)body) {
 | 
					 | 
				
			||||||
            if([dict respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
                [objs addObject:[(SWGObject*)dict asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else{
 | 
					 | 
				
			||||||
                [objs addObject:dict];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        bodyDictionary = objs;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
        bodyDictionary = [(SWGObject*)body asDictionary];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass:[NSString class]]) {
 | 
					 | 
				
			||||||
        // convert it to a dictionary
 | 
					 | 
				
			||||||
        NSError * error;
 | 
					 | 
				
			||||||
        NSString * str = (NSString*)body;
 | 
					 | 
				
			||||||
        NSDictionary *JSON =
 | 
					 | 
				
			||||||
            [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding]
 | 
					 | 
				
			||||||
                                            options:NSJSONReadingMutableContainers
 | 
					 | 
				
			||||||
                                              error:&error];
 | 
					 | 
				
			||||||
        bodyDictionary = JSON;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass: [SWGFile class]]) {
 | 
					 | 
				
			||||||
        requestContentType = @"form-data";
 | 
					 | 
				
			||||||
        bodyDictionary = body;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else{
 | 
					 | 
				
			||||||
        NSLog(@"don't know what to do with %@", body);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client stringWithCompletionBlock:requestUrl 
 | 
					 | 
				
			||||||
                                             method:@"POST" 
 | 
					 | 
				
			||||||
                                        queryParams:queryParams 
 | 
					 | 
				
			||||||
                                               body:bodyDictionary 
 | 
					 | 
				
			||||||
                                       headerParams:headerParams
 | 
					 | 
				
			||||||
                                 requestContentType: requestContentType
 | 
					 | 
				
			||||||
                                responseContentType: responseContentType
 | 
					 | 
				
			||||||
                                    completionBlock:^(NSString *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(error);
 | 
					 | 
				
			||||||
                            return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(nil);
 | 
					 | 
				
			||||||
                    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordListWordsWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}/words", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(sortBy != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortBy"] = sortBy;
 | 
					 | 
				
			||||||
    if(sortOrder != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortOrder"] = sortOrder;
 | 
					 | 
				
			||||||
    if(skip != nil)
 | 
					 | 
				
			||||||
        queryParams[@"skip"] = skip;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGWordListWord* d = [[SWGWordListWord alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) deleteWordsFromWordListWithCompletionBlock:(NSString*) permalink
 | 
					 | 
				
			||||||
        body:(NSArray*) body
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordList.{format}/{permalink}/deleteWords", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"permalink", @"}"]] withString: [SWGApiClient escape:permalink]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(body != nil && [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
        NSMutableArray * objs = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
        for (id dict in (NSArray*)body) {
 | 
					 | 
				
			||||||
            if([dict respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
                [objs addObject:[(SWGObject*)dict asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else{
 | 
					 | 
				
			||||||
                [objs addObject:dict];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        bodyDictionary = objs;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
        bodyDictionary = [(SWGObject*)body asDictionary];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass:[NSString class]]) {
 | 
					 | 
				
			||||||
        // convert it to a dictionary
 | 
					 | 
				
			||||||
        NSError * error;
 | 
					 | 
				
			||||||
        NSString * str = (NSString*)body;
 | 
					 | 
				
			||||||
        NSDictionary *JSON =
 | 
					 | 
				
			||||||
            [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding]
 | 
					 | 
				
			||||||
                                            options:NSJSONReadingMutableContainers
 | 
					 | 
				
			||||||
                                              error:&error];
 | 
					 | 
				
			||||||
        bodyDictionary = JSON;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass: [SWGFile class]]) {
 | 
					 | 
				
			||||||
        requestContentType = @"form-data";
 | 
					 | 
				
			||||||
        bodyDictionary = body;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else{
 | 
					 | 
				
			||||||
        NSLog(@"don't know what to do with %@", body);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(permalink == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client stringWithCompletionBlock:requestUrl 
 | 
					 | 
				
			||||||
                                             method:@"POST" 
 | 
					 | 
				
			||||||
                                        queryParams:queryParams 
 | 
					 | 
				
			||||||
                                               body:bodyDictionary 
 | 
					 | 
				
			||||||
                                       headerParams:headerParams
 | 
					 | 
				
			||||||
                                 requestContentType: requestContentType
 | 
					 | 
				
			||||||
                                responseContentType: responseContentType
 | 
					 | 
				
			||||||
                                    completionBlock:^(NSString *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(error);
 | 
					 | 
				
			||||||
                            return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(nil);
 | 
					 | 
				
			||||||
                    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,35 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordListWord : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* username;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* userId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* createdAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* numberCommentsOnWord;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* numberLists;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     username: (NSString*) username
 | 
					 | 
				
			||||||
     userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
     createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
     numberCommentsOnWord: (NSNumber*) numberCommentsOnWord
 | 
					 | 
				
			||||||
     numberLists: (NSNumber*) numberLists;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,74 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordListWord.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordListWord
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    username: (NSString*) username
 | 
					 | 
				
			||||||
    userId: (NSNumber*) userId
 | 
					 | 
				
			||||||
    createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
    numberCommentsOnWord: (NSNumber*) numberCommentsOnWord
 | 
					 | 
				
			||||||
    numberLists: (NSNumber*) numberLists
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _username = username;
 | 
					 | 
				
			||||||
  _userId = userId;
 | 
					 | 
				
			||||||
  _createdAt = createdAt;
 | 
					 | 
				
			||||||
  _numberCommentsOnWord = numberCommentsOnWord;
 | 
					 | 
				
			||||||
  _numberLists = numberLists;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        _username = dict[@"username"]; 
 | 
					 | 
				
			||||||
        _userId = dict[@"userId"]; 
 | 
					 | 
				
			||||||
        id createdAt_dict = dict[@"createdAt"];
 | 
					 | 
				
			||||||
        if(createdAt_dict != nil)
 | 
					 | 
				
			||||||
            _createdAt = [[SWGDate alloc]initWithValues:createdAt_dict];
 | 
					 | 
				
			||||||
        _numberCommentsOnWord = dict[@"numberCommentsOnWord"]; 
 | 
					 | 
				
			||||||
        _numberLists = dict[@"numberLists"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_username != nil) dict[@"username"] = _username ;
 | 
					 | 
				
			||||||
        if(_userId != nil) dict[@"userId"] = _userId ;
 | 
					 | 
				
			||||||
        if(_createdAt != nil){
 | 
					 | 
				
			||||||
        if([_createdAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *createdAt in (NSArray*)_createdAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)createdAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"createdAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_createdAt && [_createdAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_createdAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"createdAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_createdAt != nil) dict[@"createdAt"] = [(SWGObject*)_createdAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_numberCommentsOnWord != nil) dict[@"numberCommentsOnWord"] = _numberCommentsOnWord ;
 | 
					 | 
				
			||||||
        if(_numberLists != nil) dict[@"numberLists"] = _numberLists ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,24 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordListsApi: NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize;
 | 
					 | 
				
			||||||
+(SWGWordListsApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)basePath;
 | 
					 | 
				
			||||||
+(NSString*) getBasePath;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Creates a WordList.
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param body WordList to create
 | 
					 | 
				
			||||||
 @param auth_token The auth token of the logged-in user, obtained by calling /account.{format}/authenticate/{username} (described above)
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) createWordListWithCompletionBlock :(SWGWordList*) body 
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordList* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,132 +0,0 @@
 | 
				
			|||||||
#import "SWGWordListsApi.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGWordList.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordListsApi
 | 
					 | 
				
			||||||
static NSString * basePath = @"http://api.wordnik.com/v4";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGWordListsApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key {
 | 
					 | 
				
			||||||
    static SWGWordListsApi* singletonAPI = nil;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (singletonAPI == nil) {
 | 
					 | 
				
			||||||
        singletonAPI = [[SWGWordListsApi alloc] init];
 | 
					 | 
				
			||||||
        [singletonAPI addHeader:headerValue forKey:key];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return singletonAPI;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)path {
 | 
					 | 
				
			||||||
    basePath = path;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) getBasePath {
 | 
					 | 
				
			||||||
    return basePath;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(SWGApiClient*) apiClient {
 | 
					 | 
				
			||||||
    return [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    [self apiClient];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
           forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize {
 | 
					 | 
				
			||||||
    return [SWGApiClient requestQueueSize];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) createWordListWithCompletionBlock:(SWGWordList*) body
 | 
					 | 
				
			||||||
        auth_token:(NSString*) auth_token
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordList* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/wordLists.{format}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(auth_token != nil)
 | 
					 | 
				
			||||||
        headerParams[@"auth_token"] = auth_token;
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(body != nil && [body isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
        NSMutableArray * objs = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
        for (id dict in (NSArray*)body) {
 | 
					 | 
				
			||||||
            if([dict respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
                [objs addObject:[(SWGObject*)dict asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else{
 | 
					 | 
				
			||||||
                [objs addObject:dict];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        bodyDictionary = objs;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body respondsToSelector:@selector(asDictionary)]) {
 | 
					 | 
				
			||||||
        bodyDictionary = [(SWGObject*)body asDictionary];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass:[NSString class]]) {
 | 
					 | 
				
			||||||
        // convert it to a dictionary
 | 
					 | 
				
			||||||
        NSError * error;
 | 
					 | 
				
			||||||
        NSString * str = (NSString*)body;
 | 
					 | 
				
			||||||
        NSDictionary *JSON =
 | 
					 | 
				
			||||||
            [NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding]
 | 
					 | 
				
			||||||
                                            options:NSJSONReadingMutableContainers
 | 
					 | 
				
			||||||
                                              error:&error];
 | 
					 | 
				
			||||||
        bodyDictionary = JSON;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else if([body isKindOfClass: [SWGFile class]]) {
 | 
					 | 
				
			||||||
        requestContentType = @"form-data";
 | 
					 | 
				
			||||||
        bodyDictionary = body;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    else{
 | 
					 | 
				
			||||||
        NSLog(@"don't know what to do with %@", body);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if(auth_token == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"POST" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordList *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordList alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,31 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordObject : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* originalWord;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* suggestions;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* canonicalForm;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* vulgar;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     originalWord: (NSString*) originalWord
 | 
					 | 
				
			||||||
     suggestions: (NSArray*) suggestions
 | 
					 | 
				
			||||||
     canonicalForm: (NSString*) canonicalForm
 | 
					 | 
				
			||||||
     vulgar: (NSString*) vulgar;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,51 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    originalWord: (NSString*) originalWord
 | 
					 | 
				
			||||||
    suggestions: (NSArray*) suggestions
 | 
					 | 
				
			||||||
    canonicalForm: (NSString*) canonicalForm
 | 
					 | 
				
			||||||
    vulgar: (NSString*) vulgar
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _originalWord = originalWord;
 | 
					 | 
				
			||||||
  _suggestions = suggestions;
 | 
					 | 
				
			||||||
  _canonicalForm = canonicalForm;
 | 
					 | 
				
			||||||
  _vulgar = vulgar;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        _originalWord = dict[@"originalWord"]; 
 | 
					 | 
				
			||||||
        _suggestions = dict[@"suggestions"]; 
 | 
					 | 
				
			||||||
        _canonicalForm = dict[@"canonicalForm"]; 
 | 
					 | 
				
			||||||
        _vulgar = dict[@"vulgar"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_originalWord != nil) dict[@"originalWord"] = _originalWord ;
 | 
					 | 
				
			||||||
        if(_suggestions != nil) dict[@"suggestions"] = _suggestions ;
 | 
					 | 
				
			||||||
        if(_canonicalForm != nil) dict[@"canonicalForm"] = _canonicalForm ;
 | 
					 | 
				
			||||||
        if(_vulgar != nil) dict[@"vulgar"] = _vulgar ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,53 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGSimpleExample.h"
 | 
					 | 
				
			||||||
#import "SWGSimpleDefinition.h"
 | 
					 | 
				
			||||||
#import "SWGContentProvider.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordOfTheDay : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* _id;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* parentId;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* category;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* createdBy;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* createdAt;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGContentProvider* contentProvider;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* htmlExtra;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* definitions;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* examples;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* note;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) SWGDate* publishDate;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) _id: (NSNumber*) _id
 | 
					 | 
				
			||||||
     parentId: (NSString*) parentId
 | 
					 | 
				
			||||||
     category: (NSString*) category
 | 
					 | 
				
			||||||
     createdBy: (NSString*) createdBy
 | 
					 | 
				
			||||||
     createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
     contentProvider: (SWGContentProvider*) contentProvider
 | 
					 | 
				
			||||||
     htmlExtra: (NSString*) htmlExtra
 | 
					 | 
				
			||||||
     word: (NSString*) word
 | 
					 | 
				
			||||||
     definitions: (NSArray*) definitions
 | 
					 | 
				
			||||||
     examples: (NSArray*) examples
 | 
					 | 
				
			||||||
     note: (NSString*) note
 | 
					 | 
				
			||||||
     publishDate: (SWGDate*) publishDate;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,204 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordOfTheDay.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordOfTheDay
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)_id: (NSNumber*) _id
 | 
					 | 
				
			||||||
    parentId: (NSString*) parentId
 | 
					 | 
				
			||||||
    category: (NSString*) category
 | 
					 | 
				
			||||||
    createdBy: (NSString*) createdBy
 | 
					 | 
				
			||||||
    createdAt: (SWGDate*) createdAt
 | 
					 | 
				
			||||||
    contentProvider: (SWGContentProvider*) contentProvider
 | 
					 | 
				
			||||||
    htmlExtra: (NSString*) htmlExtra
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
    definitions: (NSArray*) definitions
 | 
					 | 
				
			||||||
    examples: (NSArray*) examples
 | 
					 | 
				
			||||||
    note: (NSString*) note
 | 
					 | 
				
			||||||
    publishDate: (SWGDate*) publishDate
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  __id = _id;
 | 
					 | 
				
			||||||
  _parentId = parentId;
 | 
					 | 
				
			||||||
  _category = category;
 | 
					 | 
				
			||||||
  _createdBy = createdBy;
 | 
					 | 
				
			||||||
  _createdAt = createdAt;
 | 
					 | 
				
			||||||
  _contentProvider = contentProvider;
 | 
					 | 
				
			||||||
  _htmlExtra = htmlExtra;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  _definitions = definitions;
 | 
					 | 
				
			||||||
  _examples = examples;
 | 
					 | 
				
			||||||
  _note = note;
 | 
					 | 
				
			||||||
  _publishDate = publishDate;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        __id = dict[@"id"]; 
 | 
					 | 
				
			||||||
        _parentId = dict[@"parentId"]; 
 | 
					 | 
				
			||||||
        _category = dict[@"category"]; 
 | 
					 | 
				
			||||||
        _createdBy = dict[@"createdBy"]; 
 | 
					 | 
				
			||||||
        id createdAt_dict = dict[@"createdAt"];
 | 
					 | 
				
			||||||
        if(createdAt_dict != nil)
 | 
					 | 
				
			||||||
            _createdAt = [[SWGDate alloc]initWithValues:createdAt_dict];
 | 
					 | 
				
			||||||
        id contentProvider_dict = dict[@"contentProvider"];
 | 
					 | 
				
			||||||
        if(contentProvider_dict != nil)
 | 
					 | 
				
			||||||
            _contentProvider = [[SWGContentProvider alloc]initWithValues:contentProvider_dict];
 | 
					 | 
				
			||||||
        _htmlExtra = dict[@"htmlExtra"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        id definitions_dict = dict[@"definitions"];
 | 
					 | 
				
			||||||
        if([definitions_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)definitions_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)definitions_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)definitions_dict) {
 | 
					 | 
				
			||||||
                    SWGSimpleDefinition* d = [[SWGSimpleDefinition alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _definitions = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _definitions = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _definitions = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        id examples_dict = dict[@"examples"];
 | 
					 | 
				
			||||||
        if([examples_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)examples_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)examples_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)examples_dict) {
 | 
					 | 
				
			||||||
                    SWGSimpleExample* d = [[SWGSimpleExample alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _examples = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _examples = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _examples = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _note = dict[@"note"]; 
 | 
					 | 
				
			||||||
        id publishDate_dict = dict[@"publishDate"];
 | 
					 | 
				
			||||||
        if(publishDate_dict != nil)
 | 
					 | 
				
			||||||
            _publishDate = [[SWGDate alloc]initWithValues:publishDate_dict];
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(__id != nil) dict[@"id"] = __id ;
 | 
					 | 
				
			||||||
        if(_parentId != nil) dict[@"parentId"] = _parentId ;
 | 
					 | 
				
			||||||
        if(_category != nil) dict[@"category"] = _category ;
 | 
					 | 
				
			||||||
        if(_createdBy != nil) dict[@"createdBy"] = _createdBy ;
 | 
					 | 
				
			||||||
        if(_createdAt != nil){
 | 
					 | 
				
			||||||
        if([_createdAt isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *createdAt in (NSArray*)_createdAt) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)createdAt asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"createdAt"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_createdAt && [_createdAt isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_createdAt toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"createdAt"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_createdAt != nil) dict[@"createdAt"] = [(SWGObject*)_createdAt asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_contentProvider != nil){
 | 
					 | 
				
			||||||
        if([_contentProvider isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGContentProvider *contentProvider in (NSArray*)_contentProvider) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)contentProvider asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"contentProvider"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_contentProvider && [_contentProvider isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_contentProvider toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"contentProvider"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_contentProvider != nil) dict[@"contentProvider"] = [(SWGObject*)_contentProvider asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_htmlExtra != nil) dict[@"htmlExtra"] = _htmlExtra ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        if(_definitions != nil){
 | 
					 | 
				
			||||||
        if([_definitions isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGSimpleDefinition *definitions in (NSArray*)_definitions) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)definitions asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"definitions"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_definitions && [_definitions isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_definitions toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"definitions"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_definitions != nil) dict[@"definitions"] = [(SWGObject*)_definitions asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_examples != nil){
 | 
					 | 
				
			||||||
        if([_examples isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGSimpleExample *examples in (NSArray*)_examples) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)examples asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"examples"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_examples && [_examples isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_examples toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"examples"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_examples != nil) dict[@"examples"] = [(SWGObject*)_examples asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_note != nil) dict[@"note"] = _note ;
 | 
					 | 
				
			||||||
        if(_publishDate != nil){
 | 
					 | 
				
			||||||
        if([_publishDate isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGDate *publishDate in (NSArray*)_publishDate) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)publishDate asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"publishDate"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_publishDate && [_publishDate isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_publishDate toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"publishDate"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_publishDate != nil) dict[@"publishDate"] = [(SWGObject*)_publishDate asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,22 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordSearchResult : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* count;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* lexicality;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSString* word;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) count: (NSNumber*) count
 | 
					 | 
				
			||||||
     lexicality: (NSNumber*) lexicality
 | 
					 | 
				
			||||||
     word: (NSString*) word;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,39 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordSearchResult.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordSearchResult
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)count: (NSNumber*) count
 | 
					 | 
				
			||||||
    lexicality: (NSNumber*) lexicality
 | 
					 | 
				
			||||||
    word: (NSString*) word
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _count = count;
 | 
					 | 
				
			||||||
  _lexicality = lexicality;
 | 
					 | 
				
			||||||
  _word = word;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        _count = dict[@"count"]; 
 | 
					 | 
				
			||||||
        _lexicality = dict[@"lexicality"]; 
 | 
					 | 
				
			||||||
        _word = dict[@"word"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_count != nil) dict[@"count"] = _count ;
 | 
					 | 
				
			||||||
        if(_lexicality != nil) dict[@"lexicality"] = _lexicality ;
 | 
					 | 
				
			||||||
        if(_word != nil) dict[@"word"] = _word ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,20 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGObject.h"
 | 
					 | 
				
			||||||
#import "SWGWordSearchResult.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordSearchResults : SWGObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSArray* searchResults;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@property(nonatomic) NSNumber* totalResults;  
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) searchResults: (NSArray*) searchResults
 | 
					 | 
				
			||||||
     totalResults: (NSNumber*) totalResults;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (id) initWithValues: (NSDictionary*)dict;
 | 
					 | 
				
			||||||
- (NSDictionary*) asDictionary;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,71 +0,0 @@
 | 
				
			|||||||
#import "SWGDate.h"
 | 
					 | 
				
			||||||
#import "SWGWordSearchResults.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordSearchResults
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id)searchResults: (NSArray*) searchResults
 | 
					 | 
				
			||||||
    totalResults: (NSNumber*) totalResults
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
  _searchResults = searchResults;
 | 
					 | 
				
			||||||
  _totalResults = totalResults;
 | 
					 | 
				
			||||||
  return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) initWithValues:(NSDictionary*)dict
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    if(self) {
 | 
					 | 
				
			||||||
        id searchResults_dict = dict[@"searchResults"];
 | 
					 | 
				
			||||||
        if([searchResults_dict isKindOfClass:[NSArray class]]) {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[(NSArray*)searchResults_dict count]];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            if([(NSArray*)searchResults_dict count] > 0) {
 | 
					 | 
				
			||||||
                for (NSDictionary* dict in (NSArray*)searchResults_dict) {
 | 
					 | 
				
			||||||
                    SWGWordSearchResult* d = [[SWGWordSearchResult alloc] initWithValues:dict];
 | 
					 | 
				
			||||||
                    [objs addObject:d];
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
                
 | 
					 | 
				
			||||||
                _searchResults = [[NSArray alloc] initWithArray:objs];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            else {
 | 
					 | 
				
			||||||
                _searchResults = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            _searchResults = [[NSArray alloc] init];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        _totalResults = dict[@"totalResults"]; 
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSDictionary*) asDictionary {
 | 
					 | 
				
			||||||
    NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(_searchResults != nil){
 | 
					 | 
				
			||||||
        if([_searchResults isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
            NSMutableArray * array = [[NSMutableArray alloc] init];
 | 
					 | 
				
			||||||
            for( SWGWordSearchResult *searchResults in (NSArray*)_searchResults) {
 | 
					 | 
				
			||||||
                [array addObject:[(SWGObject*)searchResults asDictionary]];
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            dict[@"searchResults"] = array;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else if(_searchResults && [_searchResults isKindOfClass:[SWGDate class]]) {
 | 
					 | 
				
			||||||
            NSString * dateString = [(SWGDate*)_searchResults toString];
 | 
					 | 
				
			||||||
            if(dateString){
 | 
					 | 
				
			||||||
                dict[@"searchResults"] = dateString;
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
        if(_searchResults != nil) dict[@"searchResults"] = [(SWGObject*)_searchResults asDictionary];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if(_totalResults != nil) dict[@"totalResults"] = _totalResults ;
 | 
					 | 
				
			||||||
        NSDictionary* output = [dict copy];
 | 
					 | 
				
			||||||
    return output;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@ -1,151 +0,0 @@
 | 
				
			|||||||
#import <Foundation/Foundation.h>
 | 
					 | 
				
			||||||
#import "SWGDefinitionSearchResults.h"
 | 
					 | 
				
			||||||
#import "SWGWordObject.h"
 | 
					 | 
				
			||||||
#import "SWGWordOfTheDay.h"
 | 
					 | 
				
			||||||
#import "SWGWordSearchResults.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface SWGWordsApi: NSObject
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key;
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize;
 | 
					 | 
				
			||||||
+(SWGWordsApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key;
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)basePath;
 | 
					 | 
				
			||||||
+(NSString*) getBasePath;
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Searches words
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param query Search query
 | 
					 | 
				
			||||||
 @param includePartOfSpeech Only include these comma-delimited parts of speech
 | 
					 | 
				
			||||||
 @param excludePartOfSpeech Exclude these comma-delimited parts of speech
 | 
					 | 
				
			||||||
 @param caseSensitive Search case sensitive
 | 
					 | 
				
			||||||
 @param minCorpusCount Minimum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param maxCorpusCount Maximum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param minDictionaryCount Minimum number of dictionary entries for words returned
 | 
					 | 
				
			||||||
 @param maxDictionaryCount Maximum dictionary definition count
 | 
					 | 
				
			||||||
 @param minLength Minimum word length
 | 
					 | 
				
			||||||
 @param maxLength Maximum word length
 | 
					 | 
				
			||||||
 @param skip Results to skip
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) searchWordsWithCompletionBlock :(NSString*) query 
 | 
					 | 
				
			||||||
        includePartOfSpeech:(NSString*) includePartOfSpeech 
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech 
 | 
					 | 
				
			||||||
        caseSensitive:(NSString*) caseSensitive 
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount 
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount 
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount 
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount 
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength 
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength 
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordSearchResults* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns a specific WordOfTheDay
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param date Fetches by date in yyyy-MM-dd
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getWordOfTheDayWithCompletionBlock :(NSString*) date 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordOfTheDay* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Reverse dictionary search
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param query Search term
 | 
					 | 
				
			||||||
 @param findSenseForWord Restricts words and finds closest sense
 | 
					 | 
				
			||||||
 @param includeSourceDictionaries Only include these comma-delimited source dictionaries
 | 
					 | 
				
			||||||
 @param excludeSourceDictionaries Exclude these comma-delimited source dictionaries
 | 
					 | 
				
			||||||
 @param includePartOfSpeech Only include these comma-delimited parts of speech
 | 
					 | 
				
			||||||
 @param excludePartOfSpeech Exclude these comma-delimited parts of speech
 | 
					 | 
				
			||||||
 @param expandTerms Expand terms
 | 
					 | 
				
			||||||
 @param sortBy Attribute to sort by
 | 
					 | 
				
			||||||
 @param sortOrder Sort direction
 | 
					 | 
				
			||||||
 @param minCorpusCount Minimum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param maxCorpusCount Maximum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param minLength Minimum word length
 | 
					 | 
				
			||||||
 @param maxLength Maximum word length
 | 
					 | 
				
			||||||
 @param includeTags Return a closed set of XML tags in response
 | 
					 | 
				
			||||||
 @param skip Results to skip
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) reverseDictionaryWithCompletionBlock :(NSString*) query 
 | 
					 | 
				
			||||||
        findSenseForWord:(NSString*) findSenseForWord 
 | 
					 | 
				
			||||||
        includeSourceDictionaries:(NSString*) includeSourceDictionaries 
 | 
					 | 
				
			||||||
        excludeSourceDictionaries:(NSString*) excludeSourceDictionaries 
 | 
					 | 
				
			||||||
        includePartOfSpeech:(NSString*) includePartOfSpeech 
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech 
 | 
					 | 
				
			||||||
        expandTerms:(NSString*) expandTerms 
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy 
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder 
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount 
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount 
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength 
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength 
 | 
					 | 
				
			||||||
        includeTags:(NSString*) includeTags 
 | 
					 | 
				
			||||||
        skip:(NSString*) skip 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGDefinitionSearchResults* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns an array of random WordObjects
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param includePartOfSpeech CSV part-of-speech values to include
 | 
					 | 
				
			||||||
 @param excludePartOfSpeech CSV part-of-speech values to exclude
 | 
					 | 
				
			||||||
 @param sortBy Attribute to sort by
 | 
					 | 
				
			||||||
 @param sortOrder Sort direction
 | 
					 | 
				
			||||||
 @param hasDictionaryDef Only return words with dictionary definitions
 | 
					 | 
				
			||||||
 @param minCorpusCount Minimum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param maxCorpusCount Maximum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param minDictionaryCount Minimum dictionary count
 | 
					 | 
				
			||||||
 @param maxDictionaryCount Maximum dictionary count
 | 
					 | 
				
			||||||
 @param minLength Minimum word length
 | 
					 | 
				
			||||||
 @param maxLength Maximum word length
 | 
					 | 
				
			||||||
 @param limit Maximum number of results to return
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getRandomWordsWithCompletionBlock :(NSString*) includePartOfSpeech 
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech 
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy 
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder 
 | 
					 | 
				
			||||||
        hasDictionaryDef:(NSString*) hasDictionaryDef 
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount 
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount 
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount 
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount 
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength 
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength 
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 Returns a single random WordObject
 | 
					 | 
				
			||||||
 
 | 
					 | 
				
			||||||
 @param includePartOfSpeech CSV part-of-speech values to include
 | 
					 | 
				
			||||||
 @param excludePartOfSpeech CSV part-of-speech values to exclude
 | 
					 | 
				
			||||||
 @param hasDictionaryDef Only return words with dictionary definitions
 | 
					 | 
				
			||||||
 @param minCorpusCount Minimum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param maxCorpusCount Maximum corpus frequency for terms
 | 
					 | 
				
			||||||
 @param minDictionaryCount Minimum dictionary count
 | 
					 | 
				
			||||||
 @param maxDictionaryCount Maximum dictionary count
 | 
					 | 
				
			||||||
 @param minLength Minimum word length
 | 
					 | 
				
			||||||
 @param maxLength Maximum word length
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
-(NSNumber*) getRandomWordWithCompletionBlock :(NSString*) includePartOfSpeech 
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech 
 | 
					 | 
				
			||||||
        hasDictionaryDef:(NSString*) hasDictionaryDef 
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount 
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount 
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount 
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount 
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength 
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength 
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordObject* output, NSError* error))completionBlock;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,399 +0,0 @@
 | 
				
			|||||||
#import "SWGWordsApi.h"
 | 
					 | 
				
			||||||
#import "SWGFile.h"
 | 
					 | 
				
			||||||
#import "SWGApiClient.h"
 | 
					 | 
				
			||||||
#import "SWGDefinitionSearchResults.h"
 | 
					 | 
				
			||||||
#import "SWGWordObject.h"
 | 
					 | 
				
			||||||
#import "SWGWordOfTheDay.h"
 | 
					 | 
				
			||||||
#import "SWGWordSearchResults.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation SWGWordsApi
 | 
					 | 
				
			||||||
static NSString * basePath = @"http://api.wordnik.com/v4";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(SWGWordsApi*) apiWithHeader:(NSString*)headerValue key:(NSString*)key {
 | 
					 | 
				
			||||||
    static SWGWordsApi* singletonAPI = nil;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if (singletonAPI == nil) {
 | 
					 | 
				
			||||||
        singletonAPI = [[SWGWordsApi alloc] init];
 | 
					 | 
				
			||||||
        [singletonAPI addHeader:headerValue forKey:key];
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    return singletonAPI;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(void) setBasePath:(NSString*)path {
 | 
					 | 
				
			||||||
    basePath = path;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
+(NSString*) getBasePath {
 | 
					 | 
				
			||||||
    return basePath;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(SWGApiClient*) apiClient {
 | 
					 | 
				
			||||||
    return [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) addHeader:(NSString*)value forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(id) init {
 | 
					 | 
				
			||||||
    self = [super init];
 | 
					 | 
				
			||||||
    [self apiClient];
 | 
					 | 
				
			||||||
    return self;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(void) setHeaderValue:(NSString*) value
 | 
					 | 
				
			||||||
           forKey:(NSString*)key {
 | 
					 | 
				
			||||||
    [[self apiClient] setHeaderValue:value forKey:key];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(unsigned long) requestQueueSize {
 | 
					 | 
				
			||||||
    return [SWGApiClient requestQueueSize];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) searchWordsWithCompletionBlock:(NSString*) query
 | 
					 | 
				
			||||||
        includePartOfSpeech:(NSString*) includePartOfSpeech
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech
 | 
					 | 
				
			||||||
        caseSensitive:(NSString*) caseSensitive
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength
 | 
					 | 
				
			||||||
        skip:(NSNumber*) skip
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordSearchResults* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/words.{format}/search/{query}", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:[NSString stringWithFormat:@"%@%@%@", @"{", @"query", @"}"]] withString: [SWGApiClient escape:query]];
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(caseSensitive != nil)
 | 
					 | 
				
			||||||
        queryParams[@"caseSensitive"] = caseSensitive;
 | 
					 | 
				
			||||||
    if(includePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includePartOfSpeech"] = includePartOfSpeech;
 | 
					 | 
				
			||||||
    if(excludePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"excludePartOfSpeech"] = excludePartOfSpeech;
 | 
					 | 
				
			||||||
    if(minCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minCorpusCount"] = minCorpusCount;
 | 
					 | 
				
			||||||
    if(maxCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxCorpusCount"] = maxCorpusCount;
 | 
					 | 
				
			||||||
    if(minDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minDictionaryCount"] = minDictionaryCount;
 | 
					 | 
				
			||||||
    if(maxDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxDictionaryCount"] = maxDictionaryCount;
 | 
					 | 
				
			||||||
    if(minLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minLength"] = minLength;
 | 
					 | 
				
			||||||
    if(maxLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxLength"] = maxLength;
 | 
					 | 
				
			||||||
    if(skip != nil)
 | 
					 | 
				
			||||||
        queryParams[@"skip"] = skip;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(query == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordSearchResults *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordSearchResults alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getWordOfTheDayWithCompletionBlock:(NSString*) date
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordOfTheDay* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/words.{format}/wordOfTheDay", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(date != nil)
 | 
					 | 
				
			||||||
        queryParams[@"date"] = date;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordOfTheDay *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordOfTheDay alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) reverseDictionaryWithCompletionBlock:(NSString*) query
 | 
					 | 
				
			||||||
        findSenseForWord:(NSString*) findSenseForWord
 | 
					 | 
				
			||||||
        includeSourceDictionaries:(NSString*) includeSourceDictionaries
 | 
					 | 
				
			||||||
        excludeSourceDictionaries:(NSString*) excludeSourceDictionaries
 | 
					 | 
				
			||||||
        includePartOfSpeech:(NSString*) includePartOfSpeech
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech
 | 
					 | 
				
			||||||
        expandTerms:(NSString*) expandTerms
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength
 | 
					 | 
				
			||||||
        includeTags:(NSString*) includeTags
 | 
					 | 
				
			||||||
        skip:(NSString*) skip
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGDefinitionSearchResults* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/words.{format}/reverseDictionary", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(query != nil)
 | 
					 | 
				
			||||||
        queryParams[@"query"] = query;
 | 
					 | 
				
			||||||
    if(findSenseForWord != nil)
 | 
					 | 
				
			||||||
        queryParams[@"findSenseForWord"] = findSenseForWord;
 | 
					 | 
				
			||||||
    if(includeSourceDictionaries != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeSourceDictionaries"] = includeSourceDictionaries;
 | 
					 | 
				
			||||||
    if(excludeSourceDictionaries != nil)
 | 
					 | 
				
			||||||
        queryParams[@"excludeSourceDictionaries"] = excludeSourceDictionaries;
 | 
					 | 
				
			||||||
    if(includePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includePartOfSpeech"] = includePartOfSpeech;
 | 
					 | 
				
			||||||
    if(excludePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"excludePartOfSpeech"] = excludePartOfSpeech;
 | 
					 | 
				
			||||||
    if(minCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minCorpusCount"] = minCorpusCount;
 | 
					 | 
				
			||||||
    if(maxCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxCorpusCount"] = maxCorpusCount;
 | 
					 | 
				
			||||||
    if(minLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minLength"] = minLength;
 | 
					 | 
				
			||||||
    if(maxLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxLength"] = maxLength;
 | 
					 | 
				
			||||||
    if(expandTerms != nil)
 | 
					 | 
				
			||||||
        queryParams[@"expandTerms"] = expandTerms;
 | 
					 | 
				
			||||||
    if(includeTags != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includeTags"] = includeTags;
 | 
					 | 
				
			||||||
    if(sortBy != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortBy"] = sortBy;
 | 
					 | 
				
			||||||
    if(sortOrder != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortOrder"] = sortOrder;
 | 
					 | 
				
			||||||
    if(skip != nil)
 | 
					 | 
				
			||||||
        queryParams[@"skip"] = skip;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        if(query == nil) {
 | 
					 | 
				
			||||||
        // error
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGDefinitionSearchResults *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGDefinitionSearchResults alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getRandomWordsWithCompletionBlock:(NSString*) includePartOfSpeech
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech
 | 
					 | 
				
			||||||
        sortBy:(NSString*) sortBy
 | 
					 | 
				
			||||||
        sortOrder:(NSString*) sortOrder
 | 
					 | 
				
			||||||
        hasDictionaryDef:(NSString*) hasDictionaryDef
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength
 | 
					 | 
				
			||||||
        limit:(NSNumber*) limit
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(NSArray* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/words.{format}/randomWords", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(hasDictionaryDef != nil)
 | 
					 | 
				
			||||||
        queryParams[@"hasDictionaryDef"] = hasDictionaryDef;
 | 
					 | 
				
			||||||
    if(includePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includePartOfSpeech"] = includePartOfSpeech;
 | 
					 | 
				
			||||||
    if(excludePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"excludePartOfSpeech"] = excludePartOfSpeech;
 | 
					 | 
				
			||||||
    if(minCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minCorpusCount"] = minCorpusCount;
 | 
					 | 
				
			||||||
    if(maxCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxCorpusCount"] = maxCorpusCount;
 | 
					 | 
				
			||||||
    if(minDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minDictionaryCount"] = minDictionaryCount;
 | 
					 | 
				
			||||||
    if(maxDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxDictionaryCount"] = maxDictionaryCount;
 | 
					 | 
				
			||||||
    if(minLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minLength"] = minLength;
 | 
					 | 
				
			||||||
    if(maxLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxLength"] = maxLength;
 | 
					 | 
				
			||||||
    if(sortBy != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortBy"] = sortBy;
 | 
					 | 
				
			||||||
    if(sortOrder != nil)
 | 
					 | 
				
			||||||
        queryParams[@"sortOrder"] = sortOrder;
 | 
					 | 
				
			||||||
    if(limit != nil)
 | 
					 | 
				
			||||||
        queryParams[@"limit"] = limit;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary: requestUrl 
 | 
					 | 
				
			||||||
                               method: @"GET" 
 | 
					 | 
				
			||||||
                          queryParams: queryParams 
 | 
					 | 
				
			||||||
                                 body: bodyDictionary 
 | 
					 | 
				
			||||||
                         headerParams: headerParams
 | 
					 | 
				
			||||||
                   requestContentType: requestContentType
 | 
					 | 
				
			||||||
                  responseContentType: responseContentType
 | 
					 | 
				
			||||||
                      completionBlock: ^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                         if (error) {
 | 
					 | 
				
			||||||
                             completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                         
 | 
					 | 
				
			||||||
                         if([data isKindOfClass:[NSArray class]]){
 | 
					 | 
				
			||||||
                             NSMutableArray * objs = [[NSMutableArray alloc] initWithCapacity:[data count]];
 | 
					 | 
				
			||||||
                             for (NSDictionary* dict in (NSArray*)data) {
 | 
					 | 
				
			||||||
                                SWGWordObject* d = [[SWGWordObject alloc]initWithValues: dict];
 | 
					 | 
				
			||||||
                                [objs addObject:d];
 | 
					 | 
				
			||||||
                             }
 | 
					 | 
				
			||||||
                             completionBlock(objs, nil);
 | 
					 | 
				
			||||||
                         }
 | 
					 | 
				
			||||||
                        }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
-(NSNumber*) getRandomWordWithCompletionBlock:(NSString*) includePartOfSpeech
 | 
					 | 
				
			||||||
        excludePartOfSpeech:(NSString*) excludePartOfSpeech
 | 
					 | 
				
			||||||
        hasDictionaryDef:(NSString*) hasDictionaryDef
 | 
					 | 
				
			||||||
        minCorpusCount:(NSNumber*) minCorpusCount
 | 
					 | 
				
			||||||
        maxCorpusCount:(NSNumber*) maxCorpusCount
 | 
					 | 
				
			||||||
        minDictionaryCount:(NSNumber*) minDictionaryCount
 | 
					 | 
				
			||||||
        maxDictionaryCount:(NSNumber*) maxDictionaryCount
 | 
					 | 
				
			||||||
        minLength:(NSNumber*) minLength
 | 
					 | 
				
			||||||
        maxLength:(NSNumber*) maxLength
 | 
					 | 
				
			||||||
        completionHandler: (void (^)(SWGWordObject* output, NSError* error))completionBlock{
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSMutableString* requestUrl = [NSMutableString stringWithFormat:@"%@/words.{format}/randomWord", basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // remove format in URL if needed
 | 
					 | 
				
			||||||
    if ([requestUrl rangeOfString:@".{format}"].location != NSNotFound)
 | 
					 | 
				
			||||||
        [requestUrl replaceCharactersInRange: [requestUrl rangeOfString:@".{format}"] withString:@".json"];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    NSString* requestContentType = @"application/json";
 | 
					 | 
				
			||||||
    NSString* responseContentType = @"application/json";
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        NSMutableDictionary* queryParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    if(hasDictionaryDef != nil)
 | 
					 | 
				
			||||||
        queryParams[@"hasDictionaryDef"] = hasDictionaryDef;
 | 
					 | 
				
			||||||
    if(includePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"includePartOfSpeech"] = includePartOfSpeech;
 | 
					 | 
				
			||||||
    if(excludePartOfSpeech != nil)
 | 
					 | 
				
			||||||
        queryParams[@"excludePartOfSpeech"] = excludePartOfSpeech;
 | 
					 | 
				
			||||||
    if(minCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minCorpusCount"] = minCorpusCount;
 | 
					 | 
				
			||||||
    if(maxCorpusCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxCorpusCount"] = maxCorpusCount;
 | 
					 | 
				
			||||||
    if(minDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minDictionaryCount"] = minDictionaryCount;
 | 
					 | 
				
			||||||
    if(maxDictionaryCount != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxDictionaryCount"] = maxDictionaryCount;
 | 
					 | 
				
			||||||
    if(minLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"minLength"] = minLength;
 | 
					 | 
				
			||||||
    if(maxLength != nil)
 | 
					 | 
				
			||||||
        queryParams[@"maxLength"] = maxLength;
 | 
					 | 
				
			||||||
    NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
 | 
					 | 
				
			||||||
    id bodyDictionary = nil;
 | 
					 | 
				
			||||||
        SWGApiClient* client = [SWGApiClient sharedClientFromPool:basePath];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return [client dictionary:requestUrl 
 | 
					 | 
				
			||||||
                              method:@"GET" 
 | 
					 | 
				
			||||||
                         queryParams:queryParams 
 | 
					 | 
				
			||||||
                                body:bodyDictionary 
 | 
					 | 
				
			||||||
                        headerParams:headerParams
 | 
					 | 
				
			||||||
                  requestContentType:requestContentType
 | 
					 | 
				
			||||||
                 responseContentType:responseContentType
 | 
					 | 
				
			||||||
                     completionBlock:^(NSDictionary *data, NSError *error) {
 | 
					 | 
				
			||||||
                        if (error) {
 | 
					 | 
				
			||||||
                            completionBlock(nil, error);return;
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        SWGWordObject *result = nil;
 | 
					 | 
				
			||||||
                        if (data) {
 | 
					 | 
				
			||||||
                            result = [[SWGWordObject alloc]initWithValues: data];
 | 
					 | 
				
			||||||
                        }
 | 
					 | 
				
			||||||
                        completionBlock(result , nil);}];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,13 +0,0 @@
 | 
				
			|||||||
#import <SenTestingKit/SenTestingKit.h>
 | 
					 | 
				
			||||||
#import "NIKAccountApi.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface AccountApiTest : SenTestCase {
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
@private
 | 
					 | 
				
			||||||
    NIKAccountApi * api;
 | 
					 | 
				
			||||||
    NSString * apiKey;
 | 
					 | 
				
			||||||
    NSString * username;
 | 
					 | 
				
			||||||
    NSString * password;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,253 +0,0 @@
 | 
				
			|||||||
#import "AccountApiTest.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@implementation AccountApiTest
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)setUp {
 | 
					 | 
				
			||||||
    [super setUp];
 | 
					 | 
				
			||||||
    api = [[NIKAccountApi alloc ]init];
 | 
					 | 
				
			||||||
    apiKey = [[[NSProcessInfo processInfo] environment] objectForKey:@"API_KEY"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    if(apiKey == nil){
 | 
					 | 
				
			||||||
        STFail(@"API_KEY environment variable was not set");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    [api addHeader:apiKey forKey:@"api_key"];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    username = [[[NSProcessInfo processInfo] environment] objectForKey:@"USER_NAME"];
 | 
					 | 
				
			||||||
    if(username == nil){
 | 
					 | 
				
			||||||
        STFail(@"USER_NAME environment variable was not set");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    password = [[[NSProcessInfo processInfo] environment] objectForKey:@"PASSWORD"];
 | 
					 | 
				
			||||||
    if(username == nil){
 | 
					 | 
				
			||||||
        STFail(@"PASSWORD environment variable was not set");
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)tearDown {
 | 
					 | 
				
			||||||
    [super tearDown];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)testAuthenticate {
 | 
					 | 
				
			||||||
    bool done = false;
 | 
					 | 
				
			||||||
    static NIKAuthenticationToken* target = nil;
 | 
					 | 
				
			||||||
    static NSError * gError = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [api authenticateWithCompletionBlock:username
 | 
					 | 
				
			||||||
                                password:password
 | 
					 | 
				
			||||||
                       completionHandler:^(NIKAuthenticationToken *token, NSError *error) {
 | 
					 | 
				
			||||||
                           if(error) {
 | 
					 | 
				
			||||||
                               gError = error;
 | 
					 | 
				
			||||||
                           }
 | 
					 | 
				
			||||||
                           if(token == nil){
 | 
					 | 
				
			||||||
                               NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
                           }
 | 
					 | 
				
			||||||
                           else {
 | 
					 | 
				
			||||||
                               target = [[NIKAuthenticationToken alloc] initWithValues:[token asDictionary]];
 | 
					 | 
				
			||||||
                           }
 | 
					 | 
				
			||||||
                       }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSDate * loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(target){
 | 
					 | 
				
			||||||
            STAssertNotNil([target token], @"token was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    STAssertNotNil(target, @"failed to fetch valid result in 10 seconds");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)testAuthenticatePost {
 | 
					 | 
				
			||||||
    bool done = false;
 | 
					 | 
				
			||||||
    static NIKAuthenticationToken* target = nil;
 | 
					 | 
				
			||||||
    static NSError * gError = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [api authenticatePostWithCompletionBlock:username
 | 
					 | 
				
			||||||
                                        body:password
 | 
					 | 
				
			||||||
                           completionHandler:^(NIKAuthenticationToken * token, NSError * error) {
 | 
					 | 
				
			||||||
                               if(error) {
 | 
					 | 
				
			||||||
                                   gError = error;
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               if(token == nil){
 | 
					 | 
				
			||||||
                                   NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               else {
 | 
					 | 
				
			||||||
                                   target = [[NIKAuthenticationToken alloc] initWithValues:[token asDictionary]];
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                           }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSDate * loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(target){
 | 
					 | 
				
			||||||
            STAssertNotNil([target token], @"token was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    STAssertNotNil(target, @"failed to fetch valid result in 10 seconds");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)testGetWordListsForLoggedInUser {
 | 
					 | 
				
			||||||
    bool done = false;
 | 
					 | 
				
			||||||
    static NIKAuthenticationToken * auth = nil;
 | 
					 | 
				
			||||||
    static NSArray* target = nil;
 | 
					 | 
				
			||||||
    static NSError * gError = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [api authenticatePostWithCompletionBlock:username
 | 
					 | 
				
			||||||
                                        body:password
 | 
					 | 
				
			||||||
                           completionHandler:^(NIKAuthenticationToken * authToken, NSError * error) {
 | 
					 | 
				
			||||||
                               if(error) {
 | 
					 | 
				
			||||||
                                   gError = error;
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               if(authToken == nil){
 | 
					 | 
				
			||||||
                                   NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               else {
 | 
					 | 
				
			||||||
                                   auth = [[NIKAuthenticationToken alloc] initWithValues:[authToken asDictionary]];
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                           }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSDate * loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(auth){
 | 
					 | 
				
			||||||
            STAssertNotNil([auth token], @"token was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    done = false;
 | 
					 | 
				
			||||||
    [api getWordListsForLoggedInUserWithCompletionBlock:[auth token]
 | 
					 | 
				
			||||||
                                                   skip:[NSNumber numberWithInt:0]
 | 
					 | 
				
			||||||
                                                  limit:[NSNumber numberWithInt:15]
 | 
					 | 
				
			||||||
                                      completionHandler:^(NSArray *lists, NSError *error) {
 | 
					 | 
				
			||||||
                                          if(error) {
 | 
					 | 
				
			||||||
                                              gError = error;
 | 
					 | 
				
			||||||
                                          }
 | 
					 | 
				
			||||||
                                          if(lists == nil){
 | 
					 | 
				
			||||||
                                              NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
                                          }
 | 
					 | 
				
			||||||
                                          else {
 | 
					 | 
				
			||||||
                                              target = [NSArray arrayWithArray:lists];
 | 
					 | 
				
			||||||
                                          }
 | 
					 | 
				
			||||||
                                      }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(target){
 | 
					 | 
				
			||||||
            for(NIKWordList* list in target){
 | 
					 | 
				
			||||||
                STAssertNotNil([list description], [list name], [list permalink], @"values were nil");
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    STAssertNotNil(target, @"failed to fetch valid result in 10 seconds");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)testGetApiTokenStatus {
 | 
					 | 
				
			||||||
    bool done = false;
 | 
					 | 
				
			||||||
    static NIKApiTokenStatus* target = nil;
 | 
					 | 
				
			||||||
    static NSError * gError = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [api getApiTokenStatusWithCompletionBlock:apiKey completionHandler:^(NIKApiTokenStatus *status, NSError *error) {
 | 
					 | 
				
			||||||
        if(error) {
 | 
					 | 
				
			||||||
            gError = error;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(status == nil){
 | 
					 | 
				
			||||||
            NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            target = [[NIKApiTokenStatus alloc] initWithValues:[status asDictionary]];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSDate * loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(target){
 | 
					 | 
				
			||||||
            STAssertNotNil([target token], @"token was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    STAssertNotNil(target, @"failed to fetch valid result in 10 seconds");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
- (void)testGetLoggedInUser {
 | 
					 | 
				
			||||||
    bool done = false;
 | 
					 | 
				
			||||||
    static NIKAuthenticationToken * auth = nil;
 | 
					 | 
				
			||||||
    static NIKUser* target = nil;
 | 
					 | 
				
			||||||
    static NSError * gError = nil;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [api authenticatePostWithCompletionBlock:username
 | 
					 | 
				
			||||||
                                        body:password
 | 
					 | 
				
			||||||
                           completionHandler:^(NIKAuthenticationToken * authToken, NSError * error) {
 | 
					 | 
				
			||||||
                               if(error) {
 | 
					 | 
				
			||||||
                                   gError = error;
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               if(authToken == nil){
 | 
					 | 
				
			||||||
                                   NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                               else {
 | 
					 | 
				
			||||||
                                   auth = [[NIKAuthenticationToken alloc] initWithValues:[authToken asDictionary]];
 | 
					 | 
				
			||||||
                               }
 | 
					 | 
				
			||||||
                           }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    NSDate * loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(auth){
 | 
					 | 
				
			||||||
            STAssertNotNil([auth token], @"token was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    done = false;
 | 
					 | 
				
			||||||
    [api getLoggedInUserWithCompletionBlock:[auth token] completionHandler:^(NIKUser *user, NSError *error) {
 | 
					 | 
				
			||||||
        if(error) {
 | 
					 | 
				
			||||||
            gError = error;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(user == nil){
 | 
					 | 
				
			||||||
            NSLog(@"failed to get data");
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        else {
 | 
					 | 
				
			||||||
            target = [[NIKUser alloc] initWithValues:[user asDictionary]];
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }];
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    loopUntil = [NSDate dateWithTimeIntervalSinceNow:10];
 | 
					 | 
				
			||||||
    while(!done && [loopUntil timeIntervalSinceNow] > 0){
 | 
					 | 
				
			||||||
        if(gError){
 | 
					 | 
				
			||||||
            STFail(@"got error %@", gError);
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        if(target){
 | 
					 | 
				
			||||||
            STAssertNotNil([target userName], @"username was nil");
 | 
					 | 
				
			||||||
            done = true;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    STAssertNotNil(target, @"failed to fetch valid result in 10 seconds");
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
@ -1,9 +0,0 @@
 | 
				
			|||||||
#import <SenTestingKit/SenTestingKit.h>
 | 
					 | 
				
			||||||
#import "NIKWordApi.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@interface WordApiTest : SenTestCase {
 | 
					 | 
				
			||||||
    @private
 | 
					 | 
				
			||||||
    NIKWordApi * api;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
@end
 | 
					 | 
				
			||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user