using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace MoralisUnity.Web3Api.Models { [DataContract] public class IpfsFileRequest { /// /// Path to file /// example: moralis/logo.jpg /// [DataMember(Name = "path", EmitDefaultValue = false)] [JsonProperty(PropertyName = "path")] public string Path { get; set; } /// /// base64 or JSON /// example: iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3 /// [DataMember(Name = "content", EmitDefaultValue = false)] [JsonProperty(PropertyName = "content")] public string Content { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class IpfsFileRequest{"); sb.Append(" Path ").Append(Path).Append("\n"); sb.Append(" Content ").Append(Content).Append("\n"); sb.Append("}"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }