Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.21 KB | None | 0 0
  1. package com.oldscape.shared.model;
  2.  
  3. public enum MessageType {
  4.  
  5.     /**
  6.      * A message received from the server.
  7.      */
  8.     SERVER(0),
  9.     /**
  10.      * A message in the public chat from a moderator
  11.      */
  12.     PUBLIC_MOD(1),
  13.     /**
  14.      * A message in the public chat.
  15.      */
  16.     PUBLIC(2),
  17.     /**
  18.      * A private message from another player.
  19.      */
  20.     PRIVATE_MESSAGE_RECEIVED(3),
  21.     /**
  22.      * A trade request received.
  23.      */
  24.     TRADE_RECEIVED(4),
  25.     /**
  26.      * A message received when a friend logs in or out.
  27.      */
  28.     PRIVATE_MESSAGE_INFO(5),
  29.     /**
  30.      * A private message sent to another player.
  31.      */
  32.     PRIVATE_MESSAGE_SENT(6),
  33.     /**
  34.      * A private message received from a moderator.
  35.      */
  36.     PRIVATE_MESSAGE_RECEIVED_MOD(7),
  37.     /**
  38.      * A message received in clan chat.
  39.      */
  40.     CLANCHAT(9),
  41.     /**
  42.      * A message received with information about the current clan chat.
  43.      */
  44.     CLANCHAT_INFO(11),
  45.     /**
  46.      * A trade request being sent.
  47.      */
  48.     TRADE_SENT(12),
  49.     /**
  50.      * An abuse report submitted.
  51.      */
  52.     ABUSE_REPORT(26),
  53.     /**
  54.      * Examine item description.
  55.      */
  56.     EXAMINE_ITEM(27),
  57.     /**
  58.      * Examine NPC description.
  59.      */
  60.     EXAMINE_NPC(28),
  61.     /**
  62.      * Examine object description.
  63.      */
  64.     EXAMINE_OBJECT(29),
  65.     /**
  66.      * Adding player to friend list.
  67.      */
  68.     FRIENDS_LIST_ADD(30),
  69.     /**
  70.      * Adding player to ignore list.
  71.      */
  72.     IGNORE_LIST_ADD(31),
  73.     /**
  74.      * An autochat message from a player.
  75.      */
  76.     AUTOCHAT(90),
  77.     /**
  78.      * A game message (ie. when a setting is changed).
  79.      */
  80.     GAME(99),
  81.     /**
  82.      * A message received when somebody sends a trade offer.
  83.      */
  84.     TRADE(101),
  85.     /**
  86.      * A message received when somebody sends a duel offer.
  87.      */
  88.     DUEL(103),
  89.     /**
  90.      * A message that was filtered.
  91.      */
  92.     FILTERED(105),
  93.     /**
  94.      * A message about an action.
  95.      */
  96.     ACTION(109),
  97.     /**
  98.      * An unknown message type.
  99.      */
  100.     UNKNOWN(-1);
  101.  
  102.     private final int type;
  103.  
  104.     MessageType(int type) {
  105.         this.type = type;
  106.     }
  107.  
  108.     public int getID() {
  109.         return type;
  110.     }
  111.  
  112. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement