MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / processMessage

Method processMessage

src/main/java/History/HistoryLoader.java:275–299  ·  view source on GitHub ↗
(String marker, String date, String from, String subj, String body)

Source from the content-addressed store, hash-verified

273 }
274
275 static Msg processMessage(String marker, String date, String from, String subj, String body) {
276 int msgType = Msg.MESSAGE_TYPE_HISTORY;
277
278 int mrk = Integer.parseInt(marker);
279
280 switch (mrk) {
281 case MESSAGE_MARKER_IN:
282 msgType = Msg.MESSAGE_TYPE_IN;
283 break;
284 case MESSAGE_MARKER_OUT:
285 msgType = Msg.MESSAGE_TYPE_OUT;
286 break;
287 case MESSAGE_MARKER_PRESENCE:
288 msgType = Msg.MESSAGE_TYPE_PRESENCE;
289 break;
290 }
291
292 Msg msg = new Msg(msgType,
293 StringUtils.unescapeTags(from),
294 StringUtils.unescapeTags(subj),
295 StringUtils.unescapeTags(body));
296 msg.setDayTime(date);
297
298 return msg;
299 }
300
301 private MessageItem getMessageItem(Msg msg) {
302 MessageItem item = new MessageItem(msg, smiles);

Callers 2

importDataMethod · 0.95
getMIVectorMethod · 0.95

Calls 2

unescapeTagsMethod · 0.95
setDayTimeMethod · 0.95

Tested by

no test coverage detected