/// <summary> /// Creates a new media object. /// </summary> /// <param name="mediaObject">The media object.</param> /// <returns></returns> public virtual MediaObjectInfo NewMediaObject(MediaObject mediaObject) { return(wrapper.NewMediaObject(this.BlogID, this.Username, this.Password, mediaObject)); }
/// <summary> /// Creates a new media object. /// </summary> /// <param name="mediaObject">The media object.</param> /// <returns></returns> public virtual MediaObjectInfo NewMediaObject(MediaObject mediaObject) { var xmlRpcMediaObject = Map.From.MediaObject(mediaObject); var result = _wrapper.NewMediaObject(this.BlogID, Username, Password, xmlRpcMediaObject); return Map.To.MediaObjectInfo(result); }
internal static XmlRpcMediaObject MediaObject(MediaObject input) { return new XmlRpcMediaObject { bits = input.Bits, name = input.Name, type = input.Type }; }