public static IEnumerable <Cronofy.Resource> GetResources() { IEnumerable <Cronofy.Resource> resources = new Cronofy.Resource[0]; try { resources = CronofyEnterpriseConnectAccountRequest <IEnumerable <Cronofy.Resource> >(() => { return(EnterpriseConnectAccountClient.GetResources()); }); LogHelper.Log("GetResources success"); } catch (CronofyException) { LogHelper.Log("GetResources failure"); } return(resources); }
/// <summary> /// Determines whether the specified <see cref="Cronofy.Resource"/> is /// equal to the current <see cref="Cronofy.Resource"/>. /// </summary> /// <param name="other"> /// The <see cref="Cronofy.Resource"/> to compare with the current /// <see cref="Cronofy.Resource"/>. /// </param> /// <returns> /// <c>true</c> if the specified <see cref="Cronofy.Resource"/> is equal /// to the current <see cref="Cronofy.Resource"/>; otherwise, /// <c>false</c>. /// </returns> public bool Equals(Resource other) { return other != null && this.Email == other.Email && this.Name == other.Name; }