Skip to content

Instantly share code, notes, and snippets.

@ejlevin1
Created June 6, 2013 02:46
Show Gist options
  • Save ejlevin1/5718962 to your computer and use it in GitHub Desktop.
Save ejlevin1/5718962 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<updates>
<updatedResource>
<collectionType>foods</collectionType>
<date>2010-03-01</date>
<ownerType>user</ownerType>
<ownerId>228S74</ownerId>
<subscriptionId>1234</subscriptionId>
</updatedResource>
<updatedResource>
<collectionType>foods</collectionType>
<date>2010-03-02</date>
<ownerType>user</ownerType>
<ownerId>228S74</ownerId>
<subscriptionId>1234</subscriptionId>
</updatedResource>
<updatedResource>
<collectionType>activities</collectionType>
<date>2010-03-01</date>
<ownerType>user</ownerType>
<ownerId>184X36</ownerId>
<subscriptionId>2345</subscriptionId>
</updatedResource>
</updates>
@ejlevin1
Copy link
Author

ejlevin1 commented Jun 6, 2013

public class UserFitbitSubscriptionUpdates
{
public List Updates { get; set; }
}

    public class FitbitSubscriptionUpdate
    {
        public string collectionType { get; set; }
        public DateTime date { get; set; }
        public string ownerId { get; set; }
        public string ownerType { get; set; }
        public string subscriptionId { get; set; }
    }

@ejlevin1
Copy link
Author

ejlevin1 commented Jun 6, 2013

public class UserFitbitSubscriptionUpdates : List
{
}

    public class FitbitSubscriptionUpdate
    {
        public string collectionType { get; set; }
        public DateTime date { get; set; }
        public string ownerId { get; set; }
        public string ownerType { get; set; }
        public string subscriptionId { get; set; }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment