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