Order the answer to: I want to apply the adapter design pattern. There is a system that delivers notifications to its use

Academic Help net programming Order the answer to: I want to apply the adapter design pattern. There is a system that delivers notifications to its use

net programming

Order the answer to: I want to apply the adapter design pattern. There is a system that delivers notifications to its use

Question I want to apply the adapter design pattern.
There is a system that delivers notifications to its users. TheNotification interface is as below:
public interface Notification {
    void setRecipient(User recipient);
    void setSender(User sender);
    void setMessage(String message);
    String getMessage();
}
And the User interface looks like the following:
public interface User {
    String getName();
    String getMobileNumber();
    Notification getPreferredContact();
}
This code was written to implement the Notification interfacefor in-system messages using a class InternalNotification. Theywould like to expand the system to SMS notifications and purchasedcode that will send SMS messages. That interface for an SMS messageis :
public interface SmsMessage {
    public void setSender(StringphoneNumber);
    public void setRecipient(StringphoneNumber);
    public void setMessageBody(byte[] data);
    public byte[] getMessageBody();
}
I want to implement a class SmsToNotificationAdapter that letsthe system use SMS messages to notify its users.

. . .

Subject net programming
Ready to try a high quality writing service? Get a discount here