-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Neo.IO.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Neo.SmartContract.Manifest | ||
{ | ||
public class ContractContactInformation | ||
{ | ||
public string Author { get; set; } = ""; | ||
|
||
public string Email { get; set; } = ""; | ||
|
||
public static ContractContactInformation FromJson(JObject jsonObject) | ||
{ | ||
return jsonObject != null ? new ContractContactInformation | ||
{ | ||
Author = jsonObject["author"]?.AsString(), | ||
Email = jsonObject["email"]?.AsString(), | ||
} : new ContractContactInformation(); | ||
} | ||
|
||
public JObject ToJson() | ||
{ | ||
var json = new JObject(); | ||
json["author"] = Author; | ||
json["email"] = Email; | ||
return json; | ||
} | ||
} | ||
} |
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