AuthenticationParameter.cs 544 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Dfs.WayneChina.SpsDataCourier
  5. {
  6. public class AuthenticationParameter
  7. {
  8. public AuthenticationParameter(string grantType, string userName, string password)
  9. {
  10. Params.Clear();
  11. Params.Add("grant_type", grantType);
  12. Params.Add("username", userName);
  13. Params.Add("password", password);
  14. }
  15. public Dictionary<string, string> Params { get; } = new Dictionary<string, string>();
  16. }
  17. }