EasemobInfo.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. package com.goafanti.easemob.bo;
  2. import org.springframework.http.HttpMethod;
  3. public class EasemobInfo {
  4. private String uri;
  5. private String data;
  6. private HttpMethod method;
  7. private int tryCount = 0;
  8. private boolean withAuth = true;
  9. public String getUri() {
  10. return uri;
  11. }
  12. public void setUri(String uri) {
  13. this.uri = uri;
  14. }
  15. public String getData() {
  16. return data;
  17. }
  18. public void setData(String data) {
  19. this.data = data;
  20. }
  21. public int getTryCount() {
  22. return tryCount;
  23. }
  24. public void setTryCount(int tryCount) {
  25. this.tryCount = tryCount;
  26. }
  27. public HttpMethod getMethod() {
  28. return method;
  29. }
  30. public void setMethod(HttpMethod method) {
  31. this.method = method;
  32. }
  33. public boolean isWithAuth() {
  34. return withAuth;
  35. }
  36. public void setWithAuth(boolean withAuth) {
  37. this.withAuth = withAuth;
  38. }
  39. public EasemobInfo uri(String uri) {
  40. this.uri = uri;
  41. return this;
  42. }
  43. public EasemobInfo method(HttpMethod method) {
  44. this.method = method;
  45. return this;
  46. }
  47. public EasemobInfo tryCount(int tryCount) {
  48. this.tryCount = tryCount;
  49. return this;
  50. }
  51. public EasemobInfo data(String data) {
  52. this.data = data;
  53. return this;
  54. }
  55. public EasemobInfo withAuth(boolean withAuth) {
  56. this.withAuth = withAuth;
  57. return this;
  58. }
  59. }