CarpDataEndPoint.fromCarpApp constructor
CarpDataEndPoint.fromCarpApp({})
Creates a CarpDataEndPoint based on a CarpApp
app
.
Implementation
CarpDataEndPoint.fromCarpApp({
required CarpUploadMethod uploadMethod,
required String name,
String? collection,
bool deleteWhenUploaded = true,
String dataFormat = NameSpace.CARP,
int bufferSize = 500 * 1000,
bool zip = true,
bool encrypt = false,
String? publicKey,
required CarpApp app,
}) : this(
uploadMethod: uploadMethod,
name: app.name,
uri: app.uri.toString(),
clientId: app.oauth.clientID,
clientSecret: app.oauth.clientSecret,
dataFormat: dataFormat,
bufferSize: bufferSize,
zip: zip,
deleteWhenUploaded: deleteWhenUploaded,
);