Exemple #1
0
 public Upload(JObject json)
 {
     this.Url        = (string)json["url"];
     this.ArchiveUrl = (string)json["archive"];
     this.Created    = (DateTime)json["created"];
     this.Status     = Enumerations.GetStatusFromString((string)json["status"]);
     this.Comment    = (string)json["comment"];
     this.S3         = JsonConvert.DeserializeObject <S3Info>(json["s3"].ToString());
 }
Exemple #2
0
 public Archive(JObject json)
 {
     this.Status    = Enumerations.GetStatusFromString((string)json["status"]);
     this.Size      = (long)json["size"];
     this.Key       = (string)json["key"];
     this.Checksum  = (string)json["checksum"];
     this.Created   = (DateTime)json["created"];
     this.Title     = (string)json["title"];
     this.Url       = (string)json["url"];
     this.UploadUrl = (string)json["upload"];
 }