Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RestManager"/> class.
        /// </summary>
        /// <param name="main">The parent CTRSystem instance.</param>
        public RestManager(CTRS main)
        {
            _main = main;

            #region Register Commands

            TShock.RestApi.Register(new SecureRestCommand("/ctrs/transaction", restNewTransaction, Permissions.RestTransaction));
            TShock.RestApi.Register(new SecureRestCommand("/ctrs/update", restUpdateContributors, Permissions.RestTransaction));

            TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/transaction/{user_id}", restNewTransactionV2, Permissions.RestTransaction));
            TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/update/{user_id}", restUpdateContributorV2, Permissions.RestTransaction));

            #endregion
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="RestManager"/> class.
		/// </summary>
		/// <param name="main">The parent CTRSystem instance.</param>
		public RestManager(CTRS main)
		{
			_main = main;

			#region Register Commands

			TShock.RestApi.Register(new SecureRestCommand("/ctrs/transaction", restNewTransaction, Permissions.RestTransaction));
			TShock.RestApi.Register(new SecureRestCommand("/ctrs/update", restUpdateContributors, Permissions.RestTransaction));

			TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/transaction/{user_id}", restNewTransactionV2, Permissions.RestTransaction));
			TShock.RestApi.Register(new SecureRestCommand("/ctrs/v2/update/{user_id}", restUpdateContributorV2, Permissions.RestTransaction));

			#endregion
		}
Ejemplo n.º 3
0
		public LoginManager(CTRS main)
		{
			_main = main;
		}
Ejemplo n.º 4
0
		public CommandManager(CTRS main)
		{
			_main = main;
		}
Ejemplo n.º 5
0
 public LoginManager(CTRS main)
 {
     _main = main;
 }
Ejemplo n.º 6
0
 public CommandManager(CTRS main)
 {
     _main = main;
 }