TWTRTweet はツイートを不変的な形で表したものです。
| 継承元 | NSObject | 
| Conforms to | NSCoding | 
| 宣言場所 | TWTRTweet.h | 
		
TWTRTweet Class
 
  | 
tweetIDプロパティ
createdAtプロパティ
textプロパティ
authorプロパティ
favoriteCountプロパティ
retweetCountプロパティ
inReplyToTweetIDプロパティ
inReplyToUserIDプロパティ
inReplyToScreenNameプロパティ
permalinkプロパティ
isFavoritedプロパティ
isRetweetedプロパティ
retweetIDプロパティ
– initWithJSONDictionary:
+ tweetsWithJSONArray:
		
Tasks
  | 
ツイートのつぶやき主
@property (nonatomic, strong, readonly) TWTRUser *author
ツイートが作成された時のデータ。
@property (nonatomic, copy, readonly) NSDate *createdAt
このツイートがお気に入りに登録された回数。
@property (nonatomic, assign, readonly) long long
このツイートのリプライ先ユーザーの screen name 。
@property (nonatomic, copy, readonly) NSString *inReplyToScreenName
注意: This doesn’t contain the @ sign before the screen name.
このツイートのリプライ先ツイート。
@property (nonatomic, copy, readonly) NSString *inReplyToTweetID
このツイートのリプライ先ユーザーのID。
@property (nonatomic, copy, readonly) NSString *inReplyToUserID
認証済みユーザーによってこのツイートがお気に入りに登録されたかどうか。
@property (nonatomic, assign, readonly) BOOL isFavorited
警告: このプロパティの値は認証済みユーザーに左右されます。
認証済みユーザーによってこのツイートがリツイートされたかどうか。
@property (nonatomic, assign, readonly) BOOL isRetweeted
警告:このプロパティの値は認証済みユーザーに左右されます。
このツイートへのパーマネントリンク。
@property (nonatomic, copy, readonly) NSURL *permalink
Suitable for loading in a UIWebView, WKWebView or passing to Safari:
[[UIApplication sharedApplication] openURL:tweet.permalink];
このツイートがリツイートされた回数。
@property (nonatomic, assign, readonly) long long retweetCount
The retweet ID of the authenticated user’s retweet of this Tweet.
@property (nonatomic, copy, readonly) NSString *retweetID
警告: このプロパティの値は認証済みユーザーに左右されます。
ツイートのテキスト。
@property (nonatomic, copy, readonly) NSString *text
Twitter ツイートのID。
@property (nonatomic, copy, readonly) NSString *tweetID
警告:これはid フィールドの値ではなく、id_str フィールドの値を表します。
		
PropertiesauthorThe Author of the Tweet. @property (nonatomic, strong, readonly) TWTRUser *author createdAtThe date when this Tweet was created. @property (nonatomic, copy, readonly) NSDate *createdAt favoriteCountThe number of times this Tweet was favorited. @property (nonatomic, assign, readonly) long long inReplyToScreenNameThe screen name of the user this Tweet was a reply to. @property (nonatomic, copy, readonly) NSString *inReplyToScreenName DiscussionNote: This doesn’t contain the @ sign before the screen name. inReplyToTweetIDThe Tweet this Tweet was a reply to. @property (nonatomic, copy, readonly) NSString *inReplyToTweetID inReplyToUserIDThe User ID this Tweet was a reply to. @property (nonatomic, copy, readonly) NSString *inReplyToUserID isFavoritedWhether this Tweet was favorited by the authenticated user. @property (nonatomic, assign, readonly) BOOL isFavorited DiscussionWarning: The value of this property depends on the authenticated user. isRetweetedWhether this Tweet was retweeted by the authenticated user. @property (nonatomic, assign, readonly) BOOL isRetweeted DiscussionWarning: The value of this property depends on the authenticated user. permalinkThe permalink URL for this Tweet. @property (nonatomic, copy, readonly) NSURL *permalink DiscussionSuitable for loading in a  [[UIApplication sharedApplication] openURL:tweet.permalink]; retweetCountThe number of times this Tweet was retweeted. @property (nonatomic, assign, readonly) long long retweetCount retweetIDThe retweet ID of the authenticated user’s retweet of this Tweet. @property (nonatomic, copy, readonly) NSString *retweetID DiscussionWarning: The value of this property depends on the authenticated user. textThe text of the Tweet. @property (nonatomic, copy, readonly) NSString *text tweetIDThe ID of the Twitter Tweet. @property (nonatomic, copy, readonly) NSString *tweetID DiscussionWarning: This represents the id_str field, which could differ from the value of the id field.  | 
Twitter API JSON応答の配列から、TWTRTweet インスタンスの配列を作成します。
+ (NSArray *)tweetsWithJSONArray:(NSArray *)array
array
解析済みのTweet API JSON 応答の配列。
TWTRTweet インスタンスの配列。
		
Class MethodstweetsWithJSONArray:Creates an array of TWTRTweet instances from the array of Twitter API JSON response. + (NSArray *)tweetsWithJSONArray:(NSArray *)array Parametersarray A parsed array of Tweet API JSON responses. Return ValueAn array of TWTRTweet instances.  | 
Twitter API JSON 応答のディクショナリからTWTRTweet のインスタンスを作成します。
- (instancetype)initWithJSONDictionary:(NSDictionary *)dictionary
dictionary
解析済み、一つのTwitter Tweet API JSON 応答のディクショナリ.
TWTRTweet インスタンス.
		
Instance MethodsinitWithJSONDictionary:Creates a TWTRTweet instance from the dictionary of Twitter API JSON response. - (instancetype)initWithJSONDictionary:(NSDictionary *)dictionary Parametersdictionary A parsed dictionary of a single Twitter Tweet API JSON response. Return ValueTWTRTweet instance.  |