forked from SubstrateGaming/Substrate.NET.API
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interfaces to BaseType (SubstrateGaming#58)
- Loading branch information
Showing
15 changed files
with
1,817 additions
and
306 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
13 changes: 13 additions & 0 deletions
13
Substrate.NetApi/Model/Types/Base/Abstraction/IBaseBitSeq.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,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Substrate.NetApi.Model.Types.Base.Abstraction | ||
{ | ||
public interface IBaseBitSeq : IType | ||
{ | ||
IType[] GetValues(); | ||
byte[] Reverse(byte[] b); | ||
byte Reverse(byte b); | ||
} | ||
} |
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; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Substrate.NetApi.Model.Types.Base.Abstraction | ||
{ | ||
public interface IBaseCom : IType | ||
{ | ||
CompactInteger Value { get; } | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Substrate.NetApi/Model/Types/Base/Abstraction/IBaseEnum.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,12 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Substrate.NetApi.Model.Types.Base.Abstraction | ||
{ | ||
public interface IBaseEnum : IType | ||
{ | ||
Enum GetEnum(); | ||
IType GetAssociatedData(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Substrate.NetApi/Model/Types/Base/Abstraction/IBaseEnumerable.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,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Substrate.NetApi.Model.Types.Base.Abstraction | ||
{ | ||
public interface IBaseEnumerable : IType | ||
{ | ||
/// <summary> | ||
/// List of each item | ||
/// </summary> | ||
IType[] GetValues(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Substrate.NetApi/Model/Types/Base/Abstraction/IBaseValue.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,11 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Substrate.NetApi.Model.Types.Base.Abstraction | ||
{ | ||
public interface IBaseValue : IType | ||
{ | ||
IType GetValue(); | ||
} | ||
} |
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
Oops, something went wrong.