("_internal_extensions_get_domain");
}
@@ -407,8 +367,7 @@ namespace LeanCloud {
///
/// AVRPCC loud function base.
///
- public class AVRPCCloudFunctionBase
- {
+ public class AVRPCCloudFunctionBase
{
///
/// AVRPCD eserialize.
///
@@ -419,17 +378,13 @@ namespace LeanCloud {
public delegate IDictionary AVRPCSerialize(P parameters);
public AVRPCCloudFunctionBase()
- : this(true)
- {
+ : this(true) {
}
- public AVRPCCloudFunctionBase(bool noneParameters)
- {
- if (noneParameters)
- {
- this.Encode = n =>
- {
+ public AVRPCCloudFunctionBase(bool noneParameters) {
+ if (noneParameters) {
+ this.Encode = n => {
return null;
};
}
@@ -438,28 +393,21 @@ namespace LeanCloud {
private AVRPCDeserialize _decode;
- public AVRPCDeserialize Decode
- {
- get
- {
+ public AVRPCDeserialize Decode {
+ get {
return _decode;
}
- set
- {
+ set {
_decode = value;
}
}
private AVRPCSerialize _encode;
- public AVRPCSerialize
Encode
- {
- get
- {
- if (_encode == null)
- {
- _encode = n =>
- {
+ public AVRPCSerialize
Encode {
+ get {
+ if (_encode == null) {
+ _encode = n => {
if (n != null) {
return JsonConvert.DeserializeObject>(n.ToString(), new LeanCloudJsonConverter());
}
@@ -468,18 +416,15 @@ namespace LeanCloud {
}
return _encode;
}
- set
- {
+ set {
_encode = value;
}
}
public string FunctionName { get; set; }
- public Task ExecuteAsync(P parameters)
- {
- return AVUser.GetCurrentAsync().OnSuccess(t =>
- {
+ public Task ExecuteAsync(P parameters) {
+ return AVUser.GetCurrentAsync().OnSuccess(t => {
var user = t.Result;
var encodedParameters = Encode(parameters);
var command = new EngineCommand {
@@ -488,11 +433,9 @@ namespace LeanCloud {
Content = encodedParameters
};
return AVPlugins.Instance.CommandRunner.RunCommandAsync>(command);
- }).Unwrap().OnSuccess(s =>
- {
+ }).Unwrap().OnSuccess(s => {
var responseBody = s.Result.Item2;
- if (!responseBody.ContainsKey("result"))
- {
+ if (!responseBody.ContainsKey("result")) {
return default(R);
}
@@ -503,31 +446,24 @@ namespace LeanCloud {
}
- public class AVObjectRPCCloudFunction : AVObjectRPCCloudFunction
- {
+ public class AVObjectRPCCloudFunction : AVObjectRPCCloudFunction {
}
- public class AVObjectListRPCCloudFunction : AVObjectListRPCCloudFunction
- {
+ public class AVObjectListRPCCloudFunction : AVObjectListRPCCloudFunction {
}
- public class AVObjectListRPCCloudFunction : AVRPCCloudFunctionBase