ECHOFile Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | FetchProtocol |
| Declared in | ECHOFile.h ECHOFile.m |
Other Methods
fileName
Gets a file name. ファイル名を取得します。
@property (nonatomic, readonly) NSString *fileNameDiscussion
Gets a file name. ファイル名を取得します。
Declared In
ECHOFile.h
data
Gets local file data. セットしたローカルファイルデータを取得します。
@property (nonatomic, readonly) NSData *dataDiscussion
Gets local file data. セットしたローカルファイルデータを取得します。
Declared In
ECHOFile.h
Initializer
– initWithData:fileName:
Initializes a new ECHOFile with data. バイナリデータから新しいファイルとしてオブジェクトを初期化します。
- (instancetype)initWithData:(NSData *)data fileName:(NSString *)fileNameParameters
data |
A binary data object. |
|---|---|
fileName |
This file name. |
Discussion
Initializes a new ECHOFile with data. バイナリデータから新しいファイルとしてオブジェクトを初期化します。
Declared In
ECHOFile.h
– initFrom:
Initializes a new ECHOFile from the a source NSDictionary got from the remote server. サーバー上に存在するリモートファイルとしてオブジェクトを初期化します。
- (instancetype)initFrom:(NSDictionary *)sourceParameters
dict |
A source dictionary. |
|---|
Discussion
Initializes a new ECHOFile from the a source NSDictionary got from the remote server. サーバー上に存在するリモートファイルとしてオブジェクトを初期化します。
Declared In
ECHOFile.h
Other Methods
– fetch:
Fetches data from the ECHO server by synchronous communication. 同期通信によるデータ取得。
- (void)fetch:(NSError **)returningErrorDiscussion
Fetches data from the ECHO server by synchronous communication. 同期通信によるデータ取得。
Declared In
FetchProtocol.h
– fetchInBackgroundWithBlock:
Fetches data from the ECHO server in a background thread. A block is done in the main (UI) thread after the fetching. 非同期通信によるデータ取得。取得完了後に指定したブロックをメインスレッドで実行します。
- (void)fetchInBackgroundWithBlock:(ECHOResultBlock)blockDiscussion
Fetches data from the ECHO server in a background thread. A block is done in the main (UI) thread after the fetching. 非同期通信によるデータ取得。取得完了後に指定したブロックをメインスレッドで実行します。
Declared In
FetchProtocol.h