Permalink
Browse files

updated to release SDK

  • Loading branch information...
1 parent d8572dd commit 2f0c7d6b8edc40f5ca061c236ac28d490c5ccf42 @fehguy fehguy committed Feb 28, 2011
Showing with 196 additions and 2,986 deletions.
  1. +2 −2 Classes/WordnikDemoAppViewController.m
  2. +0 −1 Dependencies/Wordnik.framework/Headers
  3. +0 −1 Dependencies/Wordnik.framework/Resources
  4. +0 −70 Dependencies/Wordnik.framework/Versions/A/Headers/WNAutocompleteWordRequest.h
  5. +0 −43 Dependencies/Wordnik.framework/Versions/A/Headers/WNAutocompleteWordResponse.h
  6. +0 −46 Dependencies/Wordnik.framework/Versions/A/Headers/WNBigram.h
  7. +0 −180 Dependencies/Wordnik.framework/Versions/A/Headers/WNClient.h
  8. +0 −44 Dependencies/Wordnik.framework/Versions/A/Headers/WNClientAPIUsageStatus.h
  9. +0 −34 Dependencies/Wordnik.framework/Versions/A/Headers/WNClientConfig.h
  10. +0 −27 Dependencies/Wordnik.framework/Versions/A/Headers/WNClientCredentials.h
  11. +0 −313 Dependencies/Wordnik.framework/Versions/A/Headers/WNClientObserver.h
  12. +0 −62 Dependencies/Wordnik.framework/Versions/A/Headers/WNConstants.h
  13. +0 −81 Dependencies/Wordnik.framework/Versions/A/Headers/WNDefinition.h
  14. +0 −26 Dependencies/Wordnik.framework/Versions/A/Headers/WNDefinitionCitation.h
  15. +0 −25 Dependencies/Wordnik.framework/Versions/A/Headers/WNDefinitionLabel.h
  16. +0 −48 Dependencies/Wordnik.framework/Versions/A/Headers/WNDefinitionList.h
  17. +0 −32 Dependencies/Wordnik.framework/Versions/A/Headers/WNDictionary.h
  18. +0 −46 Dependencies/Wordnik.framework/Versions/A/Headers/WNExampleSentence.h
  19. +0 −57 Dependencies/Wordnik.framework/Versions/A/Headers/WNPartOfSpeech.h
  20. +0 −36 Dependencies/Wordnik.framework/Versions/A/Headers/WNPunctuationFactor.h
  21. +0 −31 Dependencies/Wordnik.framework/Versions/A/Headers/WNRandomWordRequest.h
  22. +0 −27 Dependencies/Wordnik.framework/Versions/A/Headers/WNRelatedWord.h
  23. +0 −31 Dependencies/Wordnik.framework/Versions/A/Headers/WNRelatedWordList.h
  24. +0 −31 Dependencies/Wordnik.framework/Versions/A/Headers/WNRelatedWordType.h
  25. +0 −26 Dependencies/Wordnik.framework/Versions/A/Headers/WNRequestTicket.h
  26. +0 −45 Dependencies/Wordnik.framework/Versions/A/Headers/WNRestResponse.h
  27. +0 −20 Dependencies/Wordnik.framework/Versions/A/Headers/WNSpellingSuggestion.h
  28. +0 −27 Dependencies/Wordnik.framework/Versions/A/Headers/WNTextPronunciation.h
  29. +0 −23 Dependencies/Wordnik.framework/Versions/A/Headers/WNTextPronunciationType.h
  30. +0 −26 Dependencies/Wordnik.framework/Versions/A/Headers/WNUsageFrequency.h
  31. +0 −35 Dependencies/Wordnik.framework/Versions/A/Headers/WNUsageFrequencyTimeline.h
  32. +0 −89 Dependencies/Wordnik.framework/Versions/A/Headers/WNWord.h
  33. +0 −27 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordBigramRequest.h
  34. +0 −58 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordDataSource.h
  35. +0 −37 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordDefinitionRequest.h
  36. +0 −66 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordElementRequest.h
  37. +0 −19 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordExampleSentenceRequest.h
  38. +0 −38 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordListCreateRequest.h
  39. +0 −20 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordListCreateResponse.h
  40. +0 −20 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordListIdentifier.h
  41. +0 −76 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordListInfo.h
  42. +0 −18 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordNetworkDataSource.h
  43. +0 −53 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordOfTheDayResponse.h
  44. +0 −16 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordPunctuationFactorRequest.h
  45. +0 −53 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordRelatedWordsRequest.h
  46. +0 −61 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordRequest.h
  47. +0 −31 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordResponse.h
  48. +0 −17 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordTextPronunciationRequest.h
  49. +0 −15 Dependencies/Wordnik.framework/Versions/A/Headers/WNWordUsageFrequencyRequest.h
  50. +0 −178 Dependencies/Wordnik.framework/Versions/A/Headers/Wordnik.h
  51. +0 −24 Dependencies/Wordnik.framework/Versions/A/Resources/Info.plist
  52. BIN Dependencies/Wordnik.framework/Versions/A/Wordnik
  53. +0 −1 Dependencies/Wordnik.framework/Versions/Current
  54. +0 −1 Dependencies/Wordnik.framework/Wordnik
  55. +0 −1 Dependencies/WordnikUI.framework
  56. +1 −1 Resources/WordnikDemoApp-Info.plist
  57. +0 −70 iOS Framework/Wordnik.framework/Versions/A/Headers/WNAutocompleteWordRequest.h
  58. +0 −43 iOS Framework/Wordnik.framework/Versions/A/Headers/WNAutocompleteWordResponse.h
  59. +23 −19 iOS Framework/Wordnik.framework/Versions/A/Headers/WNClient.h
  60. +15 −15 iOS Framework/Wordnik.framework/Versions/A/Headers/WNClientObserver.h
  61. +8 −1 iOS Framework/Wordnik.framework/Versions/A/Headers/WNConstants.h
  62. +20 −20 iOS Framework/Wordnik.framework/Versions/A/Headers/WNDefinition.h
  63. +1 −0 iOS Framework/Wordnik.framework/Versions/A/Headers/WNDefinitionList.h
  64. +1 −0 iOS Framework/Wordnik.framework/Versions/A/Headers/WNDictionary.h
  65. +0 −46 iOS Framework/Wordnik.framework/Versions/A/Headers/WNExampleSentence.h
  66. +2 −0 iOS Framework/Wordnik.framework/Versions/A/Headers/WNPartOfSpeech.h
  67. +0 −36 iOS Framework/Wordnik.framework/Versions/A/Headers/WNPunctuationFactor.h
  68. +36 −13 iOS Framework/Wordnik.framework/Versions/A/Headers/WNRandomWordRequest.h
  69. +0 −27 iOS Framework/Wordnik.framework/Versions/A/Headers/WNRelatedWord.h
  70. +1 −1 iOS Framework/Wordnik.framework/Versions/A/Headers/WNRelatedWordList.h
  71. +4 −4 iOS Framework/Wordnik.framework/Versions/A/Headers/WNSpellingSuggestion.h
  72. +0 −89 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWord.h
  73. +2 −2 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordDataSource.h
  74. +5 −5 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordElementRequest.h
  75. +0 −19 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordExampleSentenceRequest.h
  76. +3 −0 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordNetworkDataSource.h
  77. +19 −20 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordOfTheDayResponse.h
  78. +0 −16 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordPunctuationFactorRequest.h
  79. +8 −8 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordRequest.h
  80. +5 −5 iOS Framework/Wordnik.framework/Versions/A/Headers/WNWordResponse.h
  81. +13 −96 iOS Framework/Wordnik.framework/Versions/A/Headers/Wordnik.h
  82. BIN iOS Framework/Wordnik.framework/Versions/A/Wordnik
  83. +3 −3 iOS Framework/WordnikUI.framework/Versions/A/Headers/WNDefinitionView.h
  84. +3 −3 iOS Framework/WordnikUI.framework/Versions/A/Headers/WNDefinitionViewController.h
  85. +2 −2 iOS Framework/WordnikUI.framework/Versions/A/Headers/WNDefinitionViewDelegate.h
  86. BIN iOS Framework/WordnikUI.framework/Versions/A/WordnikUI
  87. +19 −7 wordkit-demo.xcodeproj/project.pbxproj
@@ -146,8 +146,8 @@ - (void) wordnikLookup: (id) sender {
position = [self.view convertPoint: position fromView: _wordnikWebView];
/* Create our view controllers */
- WNDefinitionViewController *vc = [[[WNDefinitionViewController alloc] initWithWordString: selected
- dataSource: _dataSource] autorelease];
+ WNDefinitionViewController *vc = [[[WNDefinitionViewController alloc] initWithWord: selected
+ dataSource: _dataSource] autorelease];
vc.delegate = self;
UINavigationController *navVC = [[[UINavigationController alloc] initWithRootViewController: vc] autorelease];
@@ -1,70 +0,0 @@
-/*
- * Copyright Wordnik, Inc. 2010. All rights reserved.
- */
-
-#import <Foundation/Foundation.h>
-
-/**
- * @ingroup globals
- *
- * Supported collations for WNAutocompleteWordRequest.
- */
-typedef enum {
- /** Order the results alphabetically. */
- WNAutocompleteWordCollationAlphabetical = 0,
-
- /** Order the results by frequency descending -- that is, highest frequency results will be listed
- * first */
- WNAutocompleteWordCollationFrequencyDescending = 1
-} WNAutocompleteWordCollation;
-
-
-@interface WNAutocompleteWordRequest : NSObject {
-@private
- /** */
- NSString *_wordFragment;
-
- /** If YES, a dictionary definition is required. */
- BOOL _dictionaryDefinitionRequired;
-
- /** Maximum result count, or WNUnlimitedResultLength to return the maximum number permitted by the server. */
- NSInteger _maxResultCount;
-
- /** The offset of the results to be returned. Can be used to paginate autocomplete suggestions. */
- NSInteger _resultOffset;
-
- /** The result collation. */
- WNAutocompleteWordCollation _resultCollation;
-}
-
-+ (id) requestWithWordFragment: (NSString *) wordFragment maxResultCount: (NSInteger) maxResultCount;
-- (id) initWithWordFragment: (NSString *) wordFragment maxResultCount: (NSInteger) maxResultCount;
-
-+ (id) requestWithWordFragment: (NSString *) wordFragment
- maxResultCount: (NSInteger) maxResultCount
- resultOffset: (NSInteger) resultOffset
- resultCollation: (WNAutocompleteWordCollation) resultCollation
- dictionaryDefinitionRequired: (BOOL) dictionaryDefinitionRequired;
-
-- (id) initWithWordFragment: (NSString *) wordFragment
- maxResultCount: (NSInteger) maxResultCount
- resultOffset: (NSInteger) resultOffset
- resultCollation: (WNAutocompleteWordCollation) resultCollation
-dictionaryDefinitionRequired: (BOOL) dictionaryDefinitionRequired;
-
-/** The word fragment to be autocompleted. A single-character '*' wild-card may be included; 't*e' would match 'the'. */
-@property(nonatomic, readonly) NSString *wordFragment;
-
-/** The maximum number of results to return, or WNUnlimitedResultLength to return the maximum number permitted by the server. */
-@property(nonatomic, readonly) NSInteger maxResultCount;
-
-/** The offset of the results to be returned. Can be used to paginate autocomplete suggestions. */
-@property(nonatomic, readonly) NSInteger resultOffset;
-
-/** The collation to use for the returned results. */
-@property(nonatomic, readonly) WNAutocompleteWordCollation resultCollation;
-
-/** If YES, only words with an available dictionary definition will be returned. */
-@property(nonatomic, readonly) BOOL dictionaryDefinitionRequired;
-
-@end
@@ -1,43 +0,0 @@
-/*
- * Copyright Wordnik, Inc. 2010. All rights reserved.
- */
-
-#import <Foundation/Foundation.h>
-
-@interface WNAutocompleteWordResponse : NSObject {
-@private
- /** The remaining number of results. */
- NSInteger _remainingResultCount;
-
- /** The total result count. */
- NSInteger _totalResultCount;
-
- /** The returned word strings. */
- NSArray *_wordStrings;
-}
-
-+ (id) responseWithWordStrings: (NSArray *) wordStrings
- totalResultCount: (NSInteger) totalResultCount
- remainingResultCount: (NSInteger) remainingResultCount;
-
-- (id) initWithWordStrings: (NSArray *) wordStrings
- totalResultCount: (NSInteger) totalResultCount
- remainingResultCount: (NSInteger) remainingResultCount;
-
-/** Matching word strings. */
-@property(nonatomic, readonly) NSArray *wordStrings;
-
-/**
- * The total number of autocomplete matches. Fewer matches may be available in this response.
- */
-@property(nonatomic, readonly) NSInteger totalResultCount;
-
-/**
- * The remaining number of autocomplete matches. Pagination of remaining results may be accomplished with
- * WNAutocompleteWordRequest::resultOffset.
- */
-@property(nonatomic, readonly) NSInteger remainingResultCount;
-
-
-@end
-
@@ -1,46 +0,0 @@
-/*
- * Copyright Wordnik, Inc. 2010. All rights reserved.
- */
-
-#import <Foundation/Foundation.h>
-
-
-@interface WNBigram : NSObject {
-@private
- /** The first word string of this bigram. */
- NSString *_firstWordString;
-
- /** The second word string of this bigram. */
- NSString *_secondWordString;
-
- /** The mutual information score for this bigram. */
- double _mi;
-
- /** The weighted-log mutual information score for this bigram. */
- double _wlmi;
-}
-
-+ (id) bigramWithFirstWordString: (NSString *) firstWord
- secondWordString: (NSString *) secondWord
- mi: (double) mutualInformationScore
- wlmi: (double) weightLogMutualInformationScore;
-
-- (id) initWithFirstWordString: (NSString *) firstWord
- secondWordString: (NSString *) secondWord
- mi: (double) mutualInformationScore
- wlmi: (double) weightLogMutualInformationScore;
-
-
-/** The first word string of this bigram. */
-@property(nonatomic, readonly) NSString *firstWordString;
-
-/** The second word string of this bigram. */
-@property(nonatomic, readonly) NSString *secondWordString;
-
-/** The mutual information score for this bigram. */
-@property(nonatomic, readonly) double mi;
-
-/** The weighted-log mutual information score for this bigram. */
-@property(nonatomic, readonly) double wlmi;
-
-@end
@@ -1,180 +0,0 @@
-/*
- * Copyright Wordnik, Inc. 2010. All rights reserved.
- */
-
-#import <Foundation/Foundation.h>
-
-#import <Wordnik/WNConstants.h>
-#import <Wordnik/WNRequestTicket.h>
-
-#import <Wordnik/WNWord.h>
-
-#import <Wordnik/WNClientObserver.h>
-#import <Wordnik/WNClientConfig.h>
-#import <Wordnik/WNClientCredentials.h>
-
-#import <Wordnik/WNWordRequest.h>
-#import <Wordnik/WNWordResponse.h>
-
-#import <Wordnik/WNRandomWordRequest.h>
-
-#import <Wordnik/WNAutocompleteWordRequest.h>
-#import <Wordnik/WNAutocompleteWordResponse.h>
-
-#import <Wordnik/WNWordOfTheDayResponse.h>
-
-#import <Wordnik/WNWordListCreateRequest.h>
-#import <Wordnik/WNWordListCreateResponse.h>
-
-#import <Wordnik/WNClientAPIUsageStatus.h>
-
-#ifdef WORDNIK_PRIVATE
-#import <Wordnik/WNObserverProxy.h>
-#import <Wordnik/WNRestClient.h>
-#else
-@class WNObserverProxy;
-@class WNRestClient;
-#endif
-
-/**
- * @ingroup enums
- *
- * WNClient authentication state.
- */
-typedef enum {
- /** The client is not logged in. */
- WNClientAuthStateLoggedOut = 0,
-
- /** The client is in the process of logging in. */
- WNClientAuthStateLoggingIn = 1,
-
- /** The client has successfully logged in. */
- WNClientAuthStateLoggedIn = 2
-} WNClientAuthState;
-
-
-@interface WNClient : NSObject {
-@private
- /** The REST API client. */
- WNRestClient *_rest;
-
- /** The authentication token, or nil if the client has not authenticated */
- NSString *_authToken;
-
- /** The current client authentication state. */
- WNClientAuthState _authState;
-
- /** A cancel ticket that may be used to pre-empt a pending authentication request. If nil,
- * no authentication request is pending */
- WNRequestTicket *_authPreemptTicket;
-
- /** Registered observers */
- WNObserverProxy<WNClientObserver> *_observers;
-
- /** Date formatter used for parsing JSON dates. */
- NSDateFormatter *_dateFormatter;
-}
-
-+ (id) clientWithConfig: (WNClientConfig *) config;
-- (id) initWithClientConfig: (WNClientConfig *) config;
-
-#pragma mark API Usage
-
-- (WNRequestTicket *) requestAPIUsageStatus;
-- (WNRequestTicket *) requestAPIUsageStatusWithCompletionBlock: (void (^)(WNClientAPIUsageStatus *status, NSError *error)) completionBlock;
-
-#pragma mark Authentication
-
-- (WNRequestTicket *) loginWithCredentials: (WNClientCredentials *) credentials;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) loginWithCredentials: (WNClientCredentials *) credentials completionBlock: (void (^)(NSError *error)) completionBlock;
-#endif
-
-- (void) logout;
-
-#pragma mark Word API
-
-- (WNRequestTicket *) wordWithRequest: (WNWordRequest *) request;
-- (WNRequestTicket *) wordsWithRequests: (NSArray *) wordRequests;
-
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) wordWithRequest: (WNWordRequest *) request completionBlock: (void (^)(WNWordResponse *response, NSError *error)) completionBlock;
-- (WNRequestTicket *) wordsWithRequests: (NSArray *) wordRequests completionBlock: (void (^)(NSArray *responses, NSError *error)) completionBlock;
-#endif
-
-
-#pragma mark Random Words
-
-- (WNRequestTicket *) randomWordStringsWithRequest: (WNRandomWordRequest *) request;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) randomWordStringsWithRequest: (WNRandomWordRequest *) request
- completionBlock: (void (^)(NSArray *wordStrings, NSError *error)) completionBlock;
-#endif
-
-#pragma mark Autocomplete
-
-- (WNRequestTicket *) autocompletedWordsWithRequest: (WNAutocompleteWordRequest *) request;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) autocompletedWordsWithRequest: (WNAutocompleteWordRequest *) request
- completionBlock: (void (^)(WNAutocompleteWordResponse *response, NSError *error)) completionBlock;
-#endif
-
-
-#pragma mark Word Of the Day
-
-- (WNRequestTicket *) requestWordOfTheDay;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) requestWordOfTheDayWithCompletionBlock: (void (^)(WNWordOfTheDayResponse *response, NSError *error)) completionBlock;
-#endif
-
-
-#pragma mark Word Lists
-
-- (WNRequestTicket *) createWordListWithRequest: (WNWordListCreateRequest *) request;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) createWordListWithRequest: (WNWordListCreateRequest *) request
- completionBlock: (void (^)(WNWordListCreateResponse *response, NSError *error)) completionBlock;
-#endif
-
-- (WNRequestTicket *) deleteWordListWithIdentifier: (WNWordListIdentifier *) identifier;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) deleteWordListWithIdentifier: (WNWordListIdentifier *) identifier
- completionBlock: (void (^)(NSError *error)) completionBlock;
-#endif
-
-- (WNRequestTicket *) requestAllWordListInfo;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) requestAllWordListInfoWithCompletionBlock: (void (^)(NSArray *wordListsInfo, NSError *error)) completionBlock;
-#endif
-
-- (WNRequestTicket *) wordStringsFromListWithIdentifier: (WNWordListIdentifier *) identifier;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) wordStringsFromListWithIdentifier: (WNWordListIdentifier *) identifier
- completionBlock: (void (^)(NSArray *wordStrings, NSError *error)) completionBlock;
-#endif
-
-- (WNRequestTicket *) addWordString: (NSString *) wordString toListWithIdentifier: (WNWordListIdentifier *) identifier;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) addWordString: (NSString *) wordString
- toListWithIdentifier: (WNWordListIdentifier *) identifier
- completionBlock: (void (^)(NSError *error)) completionBlock;
-#endif
-
-- (WNRequestTicket *) removeWordString: (NSString *) wordString fromListWithIdentifier: (WNWordListIdentifier *) identifier;
-#if WN_BLOCKS_AVAILABLE
-- (WNRequestTicket *) removeWordString: (NSString *) wordString
- fromListWithIdentifier: (WNWordListIdentifier *) identifier
- completionBlock: (void (^)(NSError *error)) completionBlock;
-#endif
-
-#pragma mark Observers
-
-- (void) addObserver: (id<WNClientObserver>) observer;
-- (void) removeObserver: (id<WNClientObserver>) observer;
-
-#pragma mark Properties
-
-/** The current client authentication state. */
-@property(nonatomic, readonly) WNClientAuthState authenticationState;
-
-@end
Oops, something went wrong.

0 comments on commit 2f0c7d6

Please sign in to comment.