public static Job create(string body, string format = null) { Request request = new Request("jobs", "POST", body, format); Response response = request.getResponse(); if (response.format == "xml") { string xml = response.body; xml = xml.Replace("<job>", ""); xml = xml.Replace("</job>", ""); response.body = xml; } return((Job)Zencoder.deserialize(typeof(Job), response)); }
public static Notification deserialize(string body, string format) { return((Notification)Zencoder.deserialize(typeof(Notification), body, format)); }