Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / xmpp / SendResponse.java
blob8bfb94882abde85b4aaf3dce5ce5139c697a0e71
1 // Copyright 2008 Google Inc. All Rights Reserved.
3 package com.google.appengine.api.xmpp;
5 import java.util.HashMap;
6 import java.util.Map;
8 /**
9 * Represents results of sending a message.
11 * @author kushal@google.com (Kushal Dave)
13 public final class SendResponse {
15 private final Map<JID, Status> statusMap =
16 new HashMap<JID, Status>();
18 public SendResponse() { }
20 public void addStatus(JID jabberId, Status status) {
21 statusMap.put(jabberId, status);
24 public Map<JID, Status> getStatusMap() {
25 return statusMap;
28 /**
29 * Possible per-id responses to sending a message.
31 public enum Status {
32 SUCCESS,
33 INVALID_ID,
34 OTHER_ERROR