NCMBRequest class

NCMBリクエストを扱うクラス

Constructors

NCMBRequest()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String name, String objectId) Future<Map>
DELETEリクエストを行う name クラス名 objectId 削除対象のオブジェクトID
exec(String method, String name, {dynamic fields = const {}, dynamic objectId = '', dynamic queries = const {}, Map<String, String> additionalHeaders = const {}, dynamic path = '', dynamic multipart = false, dynamic isScript = false}) Future<Map>
リクエストを実行する method リクエストメソッド name クラス名 objectId オブジェクトID。省略時は空文字。 fields データ情報。省略時は空のMap。 queries 検索条件。省略時は空のMap。 multipart マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse path パス。省略時は空文字。 additionHeaders 追加するヘッダー情報。省略時は空のMap。 isScript スクリプト実行かどうか。省略時はfalse。
get(String name, Map queries, {dynamic multipart = false}) Future<List>
GETリクエストを行う name クラス名 queries 検索条件 multipart マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse
jsonEncode(Map fields) String
データをJSON化する NCMB特有のデータ変換を行う。 fields データ情報
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String name, Map fields, {dynamic multipart = false}) Future<Map>
POSTリクエストを行う name クラス名 fields 追加するデータ情報 multipart マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse
printWrapped(String text) → void
データ表示用(デバッグ用) text テキスト
put(String name, String objectId, Map fields) Future<Map>
PUTリクエストを行う name クラス名 objectId 更新対象のオブジェクトID fields 更新するデータ情報
req(String url, String method, Map fields, Map<String, dynamic> headers, {dynamic multipart = false, dynamic fileName = ''}) Future<Response>
リクエスト用オブジェクトを返す url URL method リクエストメソッド fields データ情報 headers ヘッダー情報 multipart マルチパートリクエストかどうか(ファイルストア用)。省略時はfalse fileName ファイル名(ファイルストア用)。省略時は空文字。
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

ncmb NCMB?
NCMBオブジェクト
getter/setter pair