com.windowsazure.messaging.GcmCredential Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of NotificationHubs Show documentation
Show all versions of NotificationHubs Show documentation
This package contains the JAVA SDK for Azure Notification Hubs.
The newest version!
package com.windowsazure.messaging;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
public final class GcmCredential extends PnsCredential {
private String googleApiKey;
public GcmCredential(){
this(null);
}
public GcmCredential(String googleApiKey){
super();
this.setGoogleApiKey(googleApiKey);
}
public String getGoogleApiKey() {
return googleApiKey;
}
public void setgoogleApiKey(String googleApiKey) {
this.googleApiKey = googleApiKey; // fix for reflection that's calling 'setgoogleApiKey' instead of 'setGoogleApiKey'.
}
public void setGoogleApiKey(String googleApiKey) {
this.googleApiKey = googleApiKey;
}
@Override
public List> getProperties() {
ArrayList> result = new ArrayList>();
result.add(new SimpleEntry("GoogleApiKey",getGoogleApiKey()));
return result;
}
@Override
public String getRootTagName() {
return "GcmCredential";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy