CreateChatTableOutcome.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. namespace Vinno.vCloud.Common.FIS.Consultation
  2. {
  3. enum CreateChatTableStatus
  4. {
  5. Success,
  6. NotFriends,
  7. Fail,
  8. HasInvalidUsers
  9. }
  10. /// <summary>
  11. /// The result for creating chat table.
  12. /// </summary>
  13. class CreateChatTableOutcome
  14. {
  15. /// <summary>
  16. /// Gets the chat table id.
  17. /// </summary>
  18. public string TableId { get; private set; }
  19. /// <summary>
  20. /// Gets the chat table name.
  21. /// </summary>
  22. public string TableName { get; private set; }
  23. /// <summary>
  24. /// Gets the value to indicate whether the chat table is a chat group or one to one chat.
  25. /// </summary>
  26. public bool IsGroup { get; private set; }
  27. /// <summary>
  28. /// Gets the status for creating chat table.
  29. /// </summary>
  30. public CreateChatTableStatus Status { get; private set; }
  31. public CreateChatTableOutcome(string tableId, string tableName, bool isGroup, CreateChatTableStatus status)
  32. {
  33. TableId = tableId;
  34. TableName = tableName;
  35. IsGroup = isGroup;
  36. Status = status;
  37. }
  38. }
  39. }