예제 #1
0
        public static void Init()
        {
            //Enable/Disable Debug.
            UStellarDebug.SetDebug(debug);

            //Info
            UStellarDebug.Debug(string.Concat("Stellar SDK - Started"));
        }
예제 #2
0
        public static Server GetServer()
        {
            //Info
            if (server == null)
            {
                UStellarDebug.Debug(string.Concat("Stellar SDK - You don't have any 'Server' set up!"), DebugType.Warning);
            }

            return(server);
        }
예제 #3
0
        public static void SetNetwork(Network network, Server server)
        {
            UStellarManager.network = network;
            stellar_dotnet_sdk.Network.Use(network);

            UStellarDebug.Debug(string.Concat("Network Setup", Environment.NewLine,
                                              "Passphrase: ", network.NetworkPassphrase), DebugType.Info);

            SetServer(server);
        }
예제 #4
0
        public static Network GetNetwork()
        {
            //Info
            if (network == null)
            {
                UStellarDebug.Debug(string.Concat("Stellar SDK - You don't have any 'Network' set up!"), DebugType.Warning);
            }

            return(network);
        }
예제 #5
0
        public static void SetServer(Server server)
        {
            UStellarManager.server = server;

            UStellarDebug.Debug("Server Setup", DebugType.Info);
        }