/// <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); }
public bool Equals(MeasuredUnit measuredUnit) { return Id == measuredUnit.Id; }
public bool Equals(MeasuredUnit measuredUnit) { return(Id == measuredUnit.Id); }
/// <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; }