chore: 简化 Command

oneRain 2019-07-31 15:12:43 +08:00
parent d19f389e2a
commit 33f3545bcf
2 changed files with 2 additions and 5 deletions

View File

@ -14,8 +14,6 @@ namespace LeanCloud.Storage.Internal
/// </summary>
public class AVCommand : HttpRequest
{
public IDictionary<string, object> DataObject { get; private set; }
public object Body {
get; set;
}
@ -160,7 +158,6 @@ namespace LeanCloud.Storage.Internal
{
this.Uri = other.Uri;
this.Method = other.Method;
this.DataObject = other.DataObject;
this.Headers = new List<KeyValuePair<string, string>>(other.Headers);
this.Body = other.Data;
}

View File

@ -178,9 +178,9 @@ namespace LeanCloud.Storage.Internal
{ "path", r.Uri.AbsolutePath },
};
if (r.DataObject != null)
if (r.Body != null)
{
results["body"] = r.DataObject;
results["body"] = r.Body;
}
return results;
}).Cast<object>().ToList();