Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sort properties and methods declarations

  • Loading branch information...
commit db3e997c1ec1f6aa609761e43cb4aa6e6825346d 1 parent 24345a1
@vtourraine vtourraine authored
View
30 SZNAltmetric/SZNAltmetricAPIClient.h
@@ -51,48 +51,48 @@ typedef void (^SZNAltmetricFetchArticleFailureBlock)(NSError *);
+ (SZNAltmetricAPIClient *)sharedClient;
/**
- Sends a fetch article request based on the Altmetric Identifier.
+ Sends a fetch article request based on the ADS Bibcode.
- @param altmetricIdentifier The Altmetric Identifier of the article.
+ @param ADSBibcode The ADS Bibcode of the article.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: the `SZNAltmetricArticle` object created from the data response.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes one argument: the `NSError` object describing the network or parsing error that occurred.
*/
-- (void)fetchArticleWithAltmetricIdentifier:(NSString *)altmetricIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
+- (void)fetchArticleWithADSBibcode:(NSString *)ADSBibcode success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
/**
- Sends a fetch article request based on the DOI.
+ Sends a fetch article request based on the Altmetric Identifier.
- @param DOI The DOI of the article.
+ @param altmetricIdentifier The Altmetric Identifier of the article.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: the `SZNAltmetricArticle` object created from the data response.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes one argument: the `NSError` object describing the network or parsing error that occurred.
*/
-- (void)fetchArticleWithDOI:(NSString *)DOI success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
+- (void)fetchArticleWithAltmetricIdentifier:(NSString *)altmetricIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
/**
- Sends a fetch article request based on the PubMed Identifier.
+ Sends a fetch article request based on the ArXiv Identifier.
- @param pubMedIdentifier The PubMed Identifier of the article.
+ @param arXivIdentifier The arXiv Identifier of the article.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: the `SZNAltmetricArticle` object created from the data response.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes one argument: the `NSError` object describing the network or parsing error that occurred.
*/
-- (void)fetchArticleWithPubMedIdentifier:(NSString *)pubMedIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
+- (void)fetchArticleWithArXivIdentifier:(NSString *)arXivIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
/**
- Sends a fetch article request based on the ArXiv Identifier.
+ Sends a fetch article request based on the DOI.
- @param arXivIdentifier The arXiv Identifier of the article.
+ @param DOI The DOI of the article.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: the `SZNAltmetricArticle` object created from the data response.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes one argument: the `NSError` object describing the network or parsing error that occurred.
*/
-- (void)fetchArticleWithArXivIdentifier:(NSString *)arXivIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
+- (void)fetchArticleWithDOI:(NSString *)DOI success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
/**
- Sends a fetch article request based on the ADS Bibcode.
+ Sends a fetch article request based on the PubMed Identifier.
- @param ADSBibcode The ADS Bibcode of the article.
+ @param pubMedIdentifier The PubMed Identifier of the article.
@param success A block object to be executed when the request operation finishes successfully. This block has no return value and takes one argument: the `SZNAltmetricArticle` object created from the data response.
@param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the response data. This block has no return value and takes one argument: the `NSError` object describing the network or parsing error that occurred.
*/
-- (void)fetchArticleWithADSBibcode:(NSString *)ADSBibcode success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
+- (void)fetchArticleWithPubMedIdentifier:(NSString *)pubMedIdentifier success:(SZNAltmetricFetchArticleSuccessBlock)success failure:(SZNAltmetricFetchArticleFailureBlock)failure;
@end
View
104 SZNAltmetric/SZNAltmetricArticle.h
@@ -30,9 +30,14 @@
@interface SZNAltmetricArticle : NSObject
/**
- The Altmetric Identifier of the article.
+ The add date of the article.
*/
-@property (copy, nonatomic) NSString *identifier;
+@property (strong, nonatomic) NSDate *addedOn;
+
+/**
+ The ADS Bibcode of the article.
+ */
+@property (copy, nonatomic) NSString *ADSBibcode;
/**
The Altmetric J Identifier of the article.
@@ -40,9 +45,14 @@
@property (copy, nonatomic) NSString *altmetricJIdentifier;
/**
- The title of the article.
+ The URL of the article.
*/
-@property (copy, nonatomic) NSString *title;
+@property (strong, nonatomic) NSURL *articleURL;
+
+/**
+ The arXiv Identifier of the article.
+ */
+@property (copy, nonatomic) NSString *arXiv;
/**
The cited by accounts count of the article.
@@ -85,39 +95,39 @@
@property (strong, nonatomic) NSDictionary *context;
/**
- The DOI of the article.
+ The details URL of the article.
*/
-@property (copy, nonatomic) NSString *DOI;
+@property (strong, nonatomic) NSURL *detailsURL;
/**
- The arXiv Identifier of the article.
+ The DOI of the article.
*/
-@property (copy, nonatomic) NSString *arXiv;
+@property (copy, nonatomic) NSString *DOI;
/**
- The NLM (National Library of Medicine) Identifier of the article.
+ The history of the article.
*/
-@property (copy, nonatomic) NSString *NLMIdentifier;
+@property (strong, nonatomic) NSDictionary *history;
/**
- The PubMed Identifier of the article.
+ The Altmetric Identifier of the article.
*/
-@property (copy, nonatomic) NSString *pubMedIdentifier;
+@property (copy, nonatomic) NSString *identifier;
/**
- The ADS Bibcode of the article.
+ The Altmetric image URL of the article (large).
*/
-@property (copy, nonatomic) NSString *ADSBibcode;
+@property (strong, nonatomic) NSURL *imageLargeURL;
/**
- The schema of the article.
+ The Altmetric image URL of the article (medium).
*/
-@property (copy, nonatomic) NSString *schema;
+@property (strong, nonatomic) NSURL *imageMediumURL;
/**
- The Altmetric score of the article.
+ The Altmetric image URL of the article (small).
*/
-@property (strong, nonatomic) NSNumber *score;
+@property (strong, nonatomic) NSURL *imageSmallURL;
/**
The ISSNs of the article.
@@ -125,19 +135,19 @@
@property (strong, nonatomic) NSArray *ISSNs;
/**
- The Altmetric image URL of the article (large).
+ The journal of the article.
*/
-@property (strong, nonatomic) NSURL *imageLargeURL;
+@property (copy, nonatomic) NSString *journal;
/**
- The Altmetric image URL of the article (medium).
+ The last update of the article.
*/
-@property (strong, nonatomic) NSURL *imageMediumURL;
+@property (strong, nonatomic) NSDate *lastUpdated;
/**
- The Altmetric image URL of the article (small).
+ The NLM (National Library of Medicine) Identifier of the article.
*/
-@property (strong, nonatomic) NSURL *imageSmallURL;
+@property (copy, nonatomic) NSString *NLMIdentifier;
/**
The Open Access status (boolean) of the article.
@@ -145,44 +155,34 @@
@property (strong, nonatomic) NSNumber *openAccess;
/**
- The history of the article.
- */
-@property (strong, nonatomic) NSDictionary *history;
-
-/**
- The journal of the article.
- */
-@property (copy, nonatomic) NSString *journal;
-
-/**
- The URL of the article.
+ The publication date of the article.
*/
-@property (strong, nonatomic) NSURL *articleURL;
+@property (strong, nonatomic) NSDate *publishedOn;
/**
- The details URL of the article.
+ The PubMed Identifier of the article.
*/
-@property (strong, nonatomic) NSURL *detailsURL;
+@property (copy, nonatomic) NSString *pubMedIdentifier;
/**
- The add date of the article.
+ The quotes of the article.
*/
-@property (strong, nonatomic) NSDate *addedOn;
+@property (strong, nonatomic) NSArray *quotes;
/**
- The last update of the article.
+ The readers of the article.
*/
-@property (strong, nonatomic) NSDate *lastUpdated;
+@property (strong, nonatomic) NSDictionary *readers;
/**
- The publication date of the article.
+ The readers count of the article.
*/
-@property (strong, nonatomic) NSDate *publishedOn;
+@property (strong, nonatomic) NSNumber *readersCount;
/**
- The subjects of the article.
+ The schema of the article.
*/
-@property (strong, nonatomic) NSArray *subjects;
+@property (copy, nonatomic) NSString *schema;
/**
The Scopus subjects of the article.
@@ -190,19 +190,19 @@
@property (strong, nonatomic) NSArray *scopusSubjects;
/**
- The quotes of the article.
+ The Altmetric score of the article.
*/
-@property (strong, nonatomic) NSArray *quotes;
+@property (strong, nonatomic) NSNumber *score;
/**
- The readers count of the article.
+ The subjects of the article.
*/
-@property (strong, nonatomic) NSNumber *readersCount;
+@property (strong, nonatomic) NSArray *subjects;
/**
- The readers of the article.
+ The title of the article.
*/
-@property (strong, nonatomic) NSDictionary *readers;
+@property (copy, nonatomic) NSString *title;
/**
Creates a `SZNAltmetricArticle` and initializes its properties from the API response object.
Please sign in to comment.
Something went wrong with that request. Please try again.