1 18 package sync4j.framework.notification; 19 20 import sync4j.framework.core.dm.ddf.DMAcc; 21 import sync4j.framework.core.dm.ddf.SyncMLDM; 22 import sync4j.framework.core.bootstrap.BootStrap; 23 24 25 31 public interface NotificationEngine { 32 33 public static final String CONTENT_TYPE_BOOTSTRAP = "application/vnd.syncml.dm+wbxml"; 35 36 37 39 51 public void sendNotificationMessage(int messageType, 52 int transportType, 53 int sessionId, 54 String phoneNumber, 55 String info, 56 String serverId, 57 String serverPassword, 58 byte[] serverNonce) throws NotificationException; 59 60 61 73 public void sendNotificationMessages(int messageType, 74 int transportType, 75 int[] sessionIds, 76 String [] phoneNumbers, 77 String info, 78 String serverId, 79 String [] serverPasswords, 80 byte[][] serverNonces) throws NotificationException; 81 82 83 94 public void sendBootstrapMessage(int messageType, 95 int transportType, 96 String serverUri, 97 String deviceUri, 98 String phoneNumber, 99 SyncMLDM syncMLDM, 100 String info) throws NotificationException; 101 102 103 116 public void sendBootstrapMessages(int messageType, 117 int transportType, 118 BootStrap[] bootstrap, 119 String serverUri, 120 SyncMLDM[] syncMLDM, 121 String info) throws NotificationException; 122 123 124 132 public BootStrap[] prepareBootstrap(int messageType, 133 BootStrap[] bootstrap, 134 String serverUri, 135 SyncMLDM[] syncMLDM, 136 String info) throws NotificationException; 137 138 139 149 public void sendBootstrapMessages(int messageType, 150 int transportType, 151 String [] phoneNumbers, 152 String [] macs, 153 int[] authMethods, 154 byte[][] messages, 155 String info) throws NotificationException; 156 157 158 } | Popular Tags |