-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rdavisau/new-inputs
Add text and url inputs
- Loading branch information
Showing
31 changed files
with
1,177 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
|
||
namespace JsonDataContextDriver | ||
{ | ||
public interface IGeneratedClass | ||
{ | ||
string Namespace { get; set; } | ||
string ClassName { get; set; } | ||
string ClassDefinition { get; set; } | ||
bool Success { get; set; } | ||
Exception Error { get; set; } | ||
|
||
IJsonInput OriginalInput { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
using LINQPad.Extensibility.DataContext; | ||
|
||
namespace JsonDataContextDriver | ||
{ | ||
public interface IJsonInput | ||
{ | ||
void GenerateClasses(string nameSpace); | ||
|
||
List<IGeneratedClass> GeneratedClasses { get; } | ||
List<ExplorerItem> ExplorerItems { get; } | ||
List<string> NamespacesToAdd { get; } | ||
List<string> ContextProperties { get; } | ||
List<string> Errors { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
|
||
namespace JsonDataContextDriver | ||
{ | ||
public class JsonFileGeneratedClass : IGeneratedClass | ||
{ | ||
public JsonFileGeneratedClass(JsonFileInput input) | ||
{ | ||
OriginalInput = input; | ||
} | ||
|
||
public string Namespace { get; set; } | ||
public string ClassName { get; set; } | ||
public string DataFilePath { get; set; } | ||
public string ClassDefinition { get; set; } | ||
public bool Success { get; set; } | ||
public Exception Error { get; set; } | ||
|
||
public JsonFileInput OriginalInput { get; set; } | ||
IJsonInput IGeneratedClass.OriginalInput | ||
{ | ||
get { return OriginalInput; } | ||
set { OriginalInput = (JsonFileInput) value; } | ||
} | ||
} | ||
} |
Oops, something went wrong.