KoenZomers/RingApi

Missing property for authorized_doorbots

insane4sure opened this issue · 2 comments

My doorbots come in as "authorized_doorbots" instead of "doorbots". Solved with an addition to KoenZomers.Ring.Api.Entities.Devices

namespace KoenZomers.Ring.Api.Entities
{
    /// <summary>
    /// Contains a collection of Ring devices
    /// </summary>
    public class Devices
    {
        /// <summary>
        /// All Ring doorbots
        /// </summary>
        [JsonProperty(PropertyName = "doorbots")]
        public List<Doorbot> Doorbots { get; set; }

        /// <summary>
        /// All Authorized Ring doorbots
        /// </summary>
        [JsonProperty(PropertyName = "authorized_doorbots")]
        public List<Doorbot> AuthorizedDoorbots { get; set; }

        /// <summary>
        /// All Ring chimes
        /// </summary>
        [JsonProperty(PropertyName = "chimes")]
        public List<Chime> Chimes { get; set; }

        /// <summary>
        /// All Ring stickup cameras
        /// </summary>
        [JsonProperty(PropertyName = "stickup_cams")]
        public List<StickupCam> StickupCams { get; set; }
    }
}


Implented in version 0.4.0.2. Feel free to next time submit suggestions like this in a pull request instead to make it easier for me to merge it. Thanks!