-
Notifications
You must be signed in to change notification settings - Fork 8
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 #7 from interisti/refactoring
Refactoring
- Loading branch information
Showing
86 changed files
with
2,329 additions
and
623 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 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,19 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IIcon | ||
{ | ||
string Id { get;} | ||
|
||
string Name { get; } | ||
|
||
IIconCategory Category { get; } | ||
|
||
IEnumerable<string> Keywords { get; } | ||
|
||
string PreviewUrl { get; } | ||
|
||
IIconProvider Provider { 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,9 @@ | ||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IIconCategory | ||
{ | ||
string Id { get;} | ||
|
||
string Name { 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,11 @@ | ||
using System.Drawing; | ||
|
||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IIconColor | ||
{ | ||
string Name { get; } | ||
|
||
Color Color { get; } | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/MaterialIconsGenerator.Core/Contracts/IIconProvider.cs
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,20 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IIconProvider | ||
{ | ||
string Name { get; } | ||
|
||
string Reference { get; } | ||
|
||
IEnumerable<string> GetSizes(); | ||
|
||
IEnumerable<string> GetDensities(); | ||
|
||
Task<IEnumerable<IIcon>> Get(); | ||
|
||
IProjectIcon CreateProjectIcon(IIcon icon, IIconColor color, string size, string density); | ||
} | ||
} |
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,11 @@ | ||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IProject | ||
{ | ||
string GetRootDirectory(); | ||
|
||
void AddFile(string filename, string type); | ||
|
||
void Save(); | ||
} | ||
} |
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,20 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IProjectIcon | ||
{ | ||
IIcon Icon { get; } | ||
|
||
string FullName { get; } | ||
|
||
IIconColor Color { get; set; } | ||
|
||
string Size { get; set; } | ||
|
||
string Density { get; set; } | ||
|
||
|
||
Task<byte[]> 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,9 @@ | ||
using System.Threading.Tasks; | ||
|
||
namespace MaterialIconsGenerator.Core | ||
{ | ||
public interface IProjectManager | ||
{ | ||
Task AddIcon(IProject project, IProjectIcon icon); | ||
} | ||
} |
Oops, something went wrong.