Esempio n. 1
0
        /// <summary>
        /// Create new message.
        /// </summary>
        /// <param name="method">Last.fm web method.</param>
        /// <param name="parameters">Parameters value.</param>
        /// <returns>Return message.</returns>
        public static Message Create(WebMethod method, object[] parameters)
        {
            if (null == parameters)
            {
                throw new ArgumentNullException("parameters", "Parameter can't be null");
            }

            Message message = Create(method);
            message.Method.SetParamsValue(parameters);

            return message;
        }
Esempio n. 2
0
 public LfmMessage(WebMethod method)
 {
     Method = method;
 }
Esempio n. 3
0
 /// <summary>
 /// Create new message.
 /// </summary>
 /// <param name="method">Last.fm web method.</param>
 /// <returns>Return message.</returns>
 public static Message Create(WebMethod method)
 {
     return new LfmMessage(method);
 }