Inheritance: Recurly.RecurlyEntity
Esempio n. 1
0
        /// <summary>
        /// Look up a Measured Unit.
        /// </summary>
        /// <param name="measuredUnitId">MeasuredUnit id</param>
        /// <returns></returns>
        public static MeasuredUnit Get(long measuredUnitId)
        {
            var measuredUnit = new MeasuredUnit();

            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                                                            MeasuredUnit.UrlPrefix + measuredUnitId,
                                                            measuredUnit.ReadXml);

            return(statusCode == HttpStatusCode.NotFound ? null : measuredUnit);
        }
Esempio n. 2
0
 public bool Equals(MeasuredUnit measuredUnit)
 {
     return Id == measuredUnit.Id;
 }
Esempio n. 3
0
 public bool Equals(MeasuredUnit measuredUnit)
 {
     return(Id == measuredUnit.Id);
 }
Esempio n. 4
0
        /// <summary>
        /// Look up a Measured Unit.
        /// </summary>
        /// <param name="measuredUnitId">MeasuredUnit id</param>
        /// <returns></returns>
        public static MeasuredUnit Get(long measuredUnitId)
        {
            var measuredUnit = new MeasuredUnit();

            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                MeasuredUnit.UrlPrefix + measuredUnitId,
                measuredUnit.ReadXml);

            return statusCode == HttpStatusCode.NotFound ? null : measuredUnit;
        }