Пример #1
0
        /// <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);
        }
Пример #2
0
 internal static XmlRpcMediaObject MediaObject(MediaObject input)
 {
     return new XmlRpcMediaObject
     {
         bits = input.Bits,
         name = input.Name,
         type = input.Type
     };
 }