You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

TokenModel.cs 531 B

123456789101112131415161718192021222324
  1. namespace LLama.Web.Models
  2. {
  3. public class TokenModel
  4. {
  5. public TokenModel(string id, string content = null, TokenType tokenType = TokenType.Content)
  6. {
  7. Id = id;
  8. Content = content;
  9. TokenType = tokenType;
  10. }
  11. public string Id { get; set; }
  12. public string Content { get; set; }
  13. public TokenType TokenType { get; set; }
  14. }
  15. public enum TokenType
  16. {
  17. Begin = 0,
  18. Content = 2,
  19. End = 4,
  20. Cancel = 10
  21. }
  22. }