Skip to content
1 change: 1 addition & 0 deletions Podio.API/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ public struct Constants
public const string PODIO_BASEURL = "https://podio.com";
public const string PODIOAPI_BASEURL = "https://api.podio.com";
}

}
2 changes: 1 addition & 1 deletion Podio.API/Exceptions/PodioRateLimitException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Podio.API.Exceptions
public class PodioRateLimitException : Exception
{
public PodioRateLimitException()
: base("Podio says no sir - thou cannot do shit for some time")
: base("Podio rate limit exceeded. https://developers.podio.com/index/limits")
{

}
Expand Down
26 changes: 26 additions & 0 deletions Podio.API/ExportType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Podio.API
{
public sealed class ExportType
{
private readonly string name;
private readonly int value;

public static readonly ExportType XLS = new ExportType(0, "xls");
public static readonly ExportType XLSX = new ExportType(1, "xlsx");

private ExportType(int value, string name)
{
this.name = name;
this.value = value;
}
public override string ToString()
{
return name;
}
}
}
288 changes: 144 additions & 144 deletions Podio.API/Model/Item.cs
Original file line number Diff line number Diff line change
@@ -1,144 +1,144 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
/// AUTOGENERATED FROM RUBYSOURCE
namespace Podio.API.Model
{
[DataContract]
public partial class Item
{
[DataMember(Name = "item_id", IsRequired=false)]
public int? ItemId { get; set; }
[DataMember(Name = "app", IsRequired=false)]
public Dictionary<string,object> App { get; set; }
[DataMember(Name = "external_id", IsRequired=false)]
public string ExternalId { get; set; }
[DataMember(Name = "title", IsRequired=false)]
public string Title { get; set; }
[DataMember(Name = "fields", IsRequired=false)]
public List<ItemField> Fields { get; set; }
[DataMember(Name = "rights", IsRequired=false)]
public string[] Rights { get; set; }
[DataMember(Name = "ratings", IsRequired=false)]
public Dictionary<string,object> Ratings { get; set; }
[DataMember(Name = "conversations", IsRequired=false)]
public List<Conversation> Conversations { get; set; }
[DataMember(Name = "tasks", IsRequired=false)]
public List<Task> Tasks { get; set; }
[DataMember(Name = "references", IsRequired=false)]
public List<Reference> References { get; set; }
[DataMember(Name = "refs", IsRequired=false)]
public List<Ref> Refs { get; set; }
[DataMember(Name = "tags", IsRequired=false)]
public List<Tag> Tags { get; set; }
[DataMember(Name = "subscribed", IsRequired=false)]
public bool? Subscribed { get; set; }
[DataMember(Name = "user_ratings", IsRequired=false)]
public Dictionary<string,object> UserRatings { get; set; }
[DataMember(Name = "link", IsRequired=false)]
public string Link { get; set; }
[DataMember(Name = "invite", IsRequired=false)]
public Dictionary<string,object> Invite { get; set; }
[DataMember(Name = "participants", IsRequired=false)]
public Dictionary<string,object> Participants { get; set; }
[DataMember(Name = "linked_account_id", IsRequired=false)]
public int? LinkedAccountId { get; set; }
[DataMember(Name = "ref", IsRequired=false)]
public Dictionary<string,object> Ref { get; set; }
[DataMember(Name = "priority", IsRequired=false)]
public float Priority { get; set; }
[DataMember(Name = "comment_count", IsRequired=false)]
public int? CommentCount { get; set; }
[DataMember(Name = "task_count", IsRequired=false)]
public int? TaskCount { get; set; }
[DataMember(Name = "file_ids", IsRequired=false)]
public List<int> FileIds { get; set; }
[DataMember(Name = "initial_revision", IsRequired=false)]
public ItemRevision InitialRevision { get; set; }
[DataMember(Name = "current_revision", IsRequired=false)]
public ItemRevision CurrentRevision { get; set; }
[DataMember(Name = "reminder", IsRequired=false)]
public Reminder Reminder { get; set; }
[DataMember(Name = "recurrence", IsRequired=false)]
public Recurrence Recurrence { get; set; }
[DataMember(Name = "linked_account_data", IsRequired=false)]
public LinkedAccountData LinkedAccountData { get; set; }
[DataMember(Name = "revisions", IsRequired=false)]
public List<ItemRevision> Revisions { get; set; }
[DataMember(Name = "files", IsRequired=false)]
public List<FileAttachment> Files { get; set; }
[DataMember(Name = "comments", IsRequired=false)]
public List<Comment> Comments { get; set; }
[DataMember(Name = "shares", IsRequired=false)]
public List<AppStoreShare> Shares { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


/// AUTOGENERATED FROM RUBYSOURCE
namespace Podio.API.Model
{
[DataContract]
public partial class Item
{


[DataMember(Name = "item_id", IsRequired=false)]
public int? ItemId { get; set; }


[DataMember(Name = "app", IsRequired=false)]
public Dictionary<string,object> App { get; set; }


[DataMember(Name = "external_id", IsRequired=false)]
public string ExternalId { get; set; }


[DataMember(Name = "title", IsRequired=false)]
public string Title { get; set; }


[DataMember(Name = "fields", IsRequired=false)]
public List<ItemField> Fields { get; set; }


[DataMember(Name = "rights", IsRequired=false)]
public string[] Rights { get; set; }


[DataMember(Name = "ratings", IsRequired=false)]
public Dictionary<string,object> Ratings { get; set; }


[DataMember(Name = "conversations", IsRequired=false)]
public List<Conversation> Conversations { get; set; }


[DataMember(Name = "tasks", IsRequired=false)]
public List<Task> Tasks { get; set; }


[DataMember(Name = "references", IsRequired=false)]
public List<Reference> References { get; set; }


[DataMember(Name = "refs", IsRequired=false)]
public List<ItemReference> Refs { get; set; }


[DataMember(Name = "tags", IsRequired=false)]
public List<string> Tags { get; set; }


[DataMember(Name = "subscribed", IsRequired=false)]
public bool? Subscribed { get; set; }


[DataMember(Name = "user_ratings", IsRequired=false)]
public Dictionary<string,object> UserRatings { get; set; }


[DataMember(Name = "link", IsRequired=false)]
public string Link { get; set; }


[DataMember(Name = "invite", IsRequired=false)]
public Dictionary<string,object> Invite { get; set; }


[DataMember(Name = "participants", IsRequired=false)]
public Dictionary<string,object> Participants { get; set; }


[DataMember(Name = "linked_account_id", IsRequired=false)]
public int? LinkedAccountId { get; set; }


[DataMember(Name = "ref", IsRequired=false)]
public Dictionary<string,object> Ref { get; set; }


[DataMember(Name = "priority", IsRequired=false)]
public float Priority { get; set; }


[DataMember(Name = "comment_count", IsRequired=false)]
public int? CommentCount { get; set; }


[DataMember(Name = "task_count", IsRequired=false)]
public int? TaskCount { get; set; }


[DataMember(Name = "file_ids", IsRequired=false)]
public List<int> FileIds { get; set; }


[DataMember(Name = "initial_revision", IsRequired=false)]
public ItemRevision InitialRevision { get; set; }


[DataMember(Name = "current_revision", IsRequired=false)]
public ItemRevision CurrentRevision { get; set; }


[DataMember(Name = "reminder", IsRequired=false)]
public Reminder Reminder { get; set; }


[DataMember(Name = "recurrence", IsRequired=false)]
public Recurrence Recurrence { get; set; }


[DataMember(Name = "linked_account_data", IsRequired=false)]
public LinkedAccountData LinkedAccountData { get; set; }


[DataMember(Name = "revisions", IsRequired=false)]
public List<ItemRevision> Revisions { get; set; }


[DataMember(Name = "files", IsRequired=false)]
public List<FileAttachment> Files { get; set; }


[DataMember(Name = "comments", IsRequired=false)]
public List<Comment> Comments { get; set; }


[DataMember(Name = "shares", IsRequired=false)]
public List<AppStoreShare> Shares { get; set; }


}
}

3 changes: 2 additions & 1 deletion Podio.API/Model/Via.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public partial class Via
[DataMember(Name = "display", IsRequired=false)]
public bool? Display { get; set; }


[DataMember(Name = "auth_client_id", IsRequired = false)]
public int? AuthClientId { get; set; }
}
}

28 changes: 28 additions & 0 deletions Podio.API/ParticipationStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Podio.API
{
public sealed class ParticipationStatus
{
private readonly string name;
private readonly int value;

public static readonly ParticipationStatus Invited = new ParticipationStatus(0, "invited");
public static readonly ParticipationStatus Accepted = new ParticipationStatus(1, "accepted");
public static readonly ParticipationStatus Declined = new ParticipationStatus(2, "declined");
public static readonly ParticipationStatus Tentative = new ParticipationStatus(3, "tentative");

private ParticipationStatus(int value, string name)
{
this.name = name;
this.value = value;
}
public override string ToString()
{
return name;
}
}
}
Loading