Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ConvertRubyModels/App.config.sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
<appSettings>
<add key="InputDirectory" value="C:\Users\Casper\Documents\GitHub\podio-rb\lib\podio\models"/>
<add key="OutputDirectory" value="C:\Users\Casper\Documents\GitHub\Podio.API-for-.NET\Podio.API\Model"/>
<!-- Config key for output location of the windows phone 8 project -->
<add key="OutputDirectoryWP8" value="C:\Dev\OpenSource\Podio.API-for-.NET\WP8.Podio.API\Model"/>
</appSettings>
</configuration>
9 changes: 8 additions & 1 deletion ConvertRubyModels/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ static void Main(string[] args)
{
DirectoryInfo inputdir = new DirectoryInfo(ConfigurationManager.AppSettings["InputDirectory"]);
DirectoryInfo outputdir = Directory.CreateDirectory(ConfigurationManager.AppSettings["OutputDirectory"]);

// Added to get the current directory for the windows phone app library from the config file.
DirectoryInfo outputdirWP8 = Directory.CreateDirectory(ConfigurationManager.AppSettings["OutputDirectoryWP8"]);

// convert all ruby files and output it to outputdir
foreach (var fi in inputdir.GetFiles("*.rb"))
{
Expand All @@ -30,6 +32,11 @@ static void Main(string[] args)
{
writer.WriteLine(ConvertPodioModelFile(filecontents));
}
//writing out the podio API clss library to the model directory for the Windows Phone 8 class library
using (var writer = File.CreateText(Path.Combine(outputdirWP8.FullName, ConvertCaseString(filename, Case.PascalCase) + ".cs")))
{
writer.WriteLine(ConvertPodioModelFile(filecontents));
}
}


Expand Down
30 changes: 30 additions & 0 deletions Podio.API.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,54 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Podio.API.Examples.MVC3", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConvertRubyModels", "ConvertRubyModels\ConvertRubyModels.csproj", "{7FFBE624-42A4-4429-8730-5811D29BDFDF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP8.Podio.API", "WP8.Podio.API\WP8.Podio.API.csproj", "{974F20B5-1934-418A-9E9F-BAA698E3527A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Debug|ARM.ActiveCfg = Debug|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Debug|x86.ActiveCfg = Debug|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Release|Any CPU.Build.0 = Release|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Release|ARM.ActiveCfg = Release|Any CPU
{1A3252AD-C2AD-4236-8DF8-8E69227D0743}.Release|x86.ActiveCfg = Release|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Debug|ARM.ActiveCfg = Debug|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Debug|x86.ActiveCfg = Debug|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Release|Any CPU.Build.0 = Release|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Release|ARM.ActiveCfg = Release|Any CPU
{9FDDE21E-AD9C-4D48-B29B-EE10AE97AAD3}.Release|x86.ActiveCfg = Release|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Debug|ARM.ActiveCfg = Debug|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Debug|x86.ActiveCfg = Debug|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Release|Any CPU.Build.0 = Release|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Release|ARM.ActiveCfg = Release|Any CPU
{7FFBE624-42A4-4429-8730-5811D29BDFDF}.Release|x86.ActiveCfg = Release|Any CPU
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|ARM.ActiveCfg = Debug|ARM
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|ARM.Build.0 = Debug|ARM
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|x86.ActiveCfg = Debug|x86
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Debug|x86.Build.0 = Debug|x86
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|Any CPU.Build.0 = Release|Any CPU
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|ARM.ActiveCfg = Release|ARM
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|ARM.Build.0 = Release|ARM
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|x86.ActiveCfg = Release|x86
{974F20B5-1934-418A-9E9F-BAA698E3527A}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Empty file.
32 changes: 32 additions & 0 deletions WP8.Podio.API/Model/AccountProvider.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


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


}
}

36 changes: 36 additions & 0 deletions WP8.Podio.API/Model/Action.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


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


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


}
}

32 changes: 32 additions & 0 deletions WP8.Podio.API/Model/ActivationStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


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


}
}

44 changes: 44 additions & 0 deletions WP8.Podio.API/Model/Activity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


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


[DataMember(Name = "created_on", IsRequired=false)]
public DateTime? CreatedOn { get; set; }


[DataMember(Name = "created_by", IsRequired=false)]
public ByLine CreatedBy { get; set; }


[DataMember(Name = "created_via", IsRequired=false)]
public Via CreatedVia { get; set; }


}
}

28 changes: 28 additions & 0 deletions WP8.Podio.API/Model/AppStoreCategory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


}
}

124 changes: 124 additions & 0 deletions WP8.Podio.API/Model/AppStoreShare.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


[DataMember(Name = "author", IsRequired=false)]
public ByLine Author { get; set; }


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


[DataMember(Name = "app", IsRequired=false)]
public Application App { get; set; }


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


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


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


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


}
}

Loading