-
Notifications
You must be signed in to change notification settings - Fork 2
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 #28 from Denifia/develop
fixes and version bump
- Loading branch information
Showing
16 changed files
with
138 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
|
||
namespace Denifia.Stardew.SendItems.Domain | ||
{ | ||
public class BasePerson : IEquatable<BasePerson> | ||
{ | ||
public string Id { get; set; } | ||
public string Name { get; set; } | ||
public string FarmName { get; set; } | ||
|
||
public string DisplayText | ||
{ | ||
get | ||
{ | ||
return $"{Name} ({FarmName} Farm)"; | ||
} | ||
} | ||
|
||
public string ConsoleSafeName | ||
{ | ||
get { return MakeConsoleSave(Name); } | ||
} | ||
|
||
public string ConsoleSaveFarmName | ||
{ | ||
get { return MakeConsoleSave(FarmName); } | ||
} | ||
|
||
private string MakeConsoleSave(string text) | ||
{ | ||
if (text.Contains(" ")) | ||
{ | ||
text = $"\"{text}\""; | ||
} | ||
return text; | ||
} | ||
|
||
public bool Equals(BasePerson other) | ||
{ | ||
return Id == other.Id; | ||
} | ||
} | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"ApiUrl": "http://localhost:5000/api", | ||
"Debug": true | ||
"Debug": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
[← back to readme](readme.md) | ||
|
||
# Release notes | ||
## 0.2.0 | ||
## 1.0.1 | ||
* Bumped version because of bad release | ||
|
||
## 1.0-Beta | ||
* All code is now async for performance | ||
* Moved from LiteDb to Azure Table Storage | ||
* Changed mail endpoint paths, names and parameters to be more clear | ||
* Creating mail on the server has changed verbs from POST to PUT | ||
* Added a /api/mail/count endpoint to check how much mail is on the server | ||
* Added a /api/health endpoint that just returns true | ||
|
||
## Prior to 0.2.0 | ||
## Prior to 1.0-Beta | ||
* Intital cut of api | ||
* No release notes available |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"schema": 1.0, | ||
"Send Items": "0.2.0", | ||
"Send Items": "1.0.1", | ||
"Purchase Recipes": "0.1.0" | ||
} |