com.windowsazure.messaging.FcmCredential Maven / Gradle / Ivy
package com.windowsazure.messaging;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
public final class FcmCredential extends PnsCredential {
private String googleApiKey;
public FcmCredential(){
this(null);
}
public FcmCredential(String googleApiKey){
super();
this.setGoogleApiKey(googleApiKey);
}
public String getGoogleApiKey() {
return googleApiKey;
}
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"; // TODO rename to FcmCredential when new version of backend will be released
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy