示例#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
        }
示例#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
		}
示例#3
0
		public LoginManager(CTRS main)
		{
			_main = main;
		}
示例#4
0
		public CommandManager(CTRS main)
		{
			_main = main;
		}
示例#5
0
 public LoginManager(CTRS main)
 {
     _main = main;
 }
示例#6
0
 public CommandManager(CTRS main)
 {
     _main = main;
 }