您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

XmppChannelClientInfo.java 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Copyright (c) 2006-2017 DMDirc Developers
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a copy
  5. * of this software and associated documentation files (the "Software"), to deal
  6. * in the Software without restriction, including without limitation the rights
  7. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. * copies of the Software, and to permit persons to whom the Software is
  9. * furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  20. * SOFTWARE.
  21. */
  22. package com.dmdirc.parser.xmpp;
  23. import com.dmdirc.parser.common.BaseChannelClientInfo;
  24. import com.dmdirc.parser.interfaces.ChannelClientInfo;
  25. import com.dmdirc.parser.interfaces.ChannelInfo;
  26. import com.dmdirc.parser.interfaces.ClientInfo;
  27. import java.util.Comparator;
  28. import javax.annotation.Nonnull;
  29. /**
  30. * An XMPP-specific channel client info object.
  31. */
  32. public class XmppChannelClientInfo extends BaseChannelClientInfo {
  33. /**
  34. * Creates a new client info object for the specified channel and client.
  35. *
  36. * @param channel The channel the association is with
  37. * @param client The user that holds the association
  38. */
  39. public XmppChannelClientInfo(final ChannelInfo channel, final ClientInfo client) {
  40. super(channel, client);
  41. }
  42. @Override
  43. public String getImportantModePrefix() {
  44. return ""; // TODO: Implement
  45. }
  46. @Override
  47. public String getImportantMode() {
  48. return ""; // TODO: Implement
  49. }
  50. @Override
  51. public String getAllModes() {
  52. return ""; // TODO: Implement
  53. }
  54. @Override
  55. public String getAllModesPrefix() {
  56. return ""; // TODO: Implement
  57. }
  58. @Override
  59. public void kick(final String message) {
  60. throw new UnsupportedOperationException("Not supported yet.");
  61. }
  62. @Override
  63. public Comparator<String> getImportantModeComparator() {
  64. return Comparator.naturalOrder();
  65. }
  66. @Override
  67. public int compareTo(@Nonnull final ChannelClientInfo o) {
  68. return 0; // TODO: Implement
  69. }
  70. }