[peertube] constant name for service

This commit is contained in:
yausername 2019-11-24 02:35:41 +05:30
parent bc75c6603b
commit 281ccea39f
2 changed files with 2 additions and 7 deletions

View File

@ -48,7 +48,7 @@ public abstract class StreamingService {
* This class holds meta information about the service implementation. * This class holds meta information about the service implementation.
*/ */
public static class ServiceInfo { public static class ServiceInfo {
private String name; private final String name;
private final List<MediaCapability> mediaCapabilities; private final List<MediaCapability> mediaCapabilities;
@ -66,10 +66,6 @@ public abstract class StreamingService {
return name; return name;
} }
public void setName(String name) {
this.name = name;
}
public List<MediaCapability> getMediaCapabilities() { public List<MediaCapability> getMediaCapabilities() {
return mediaCapabilities; return mediaCapabilities;
} }

View File

@ -46,7 +46,7 @@ public class PeertubeService extends StreamingService {
} }
public PeertubeService(int id, PeertubeInstance instance) { public PeertubeService(int id, PeertubeInstance instance) {
super(id, instance.getName(), asList(VIDEO, COMMENTS)); super(id, "PeerTube", asList(VIDEO, COMMENTS));
this.instance = instance; this.instance = instance;
} }
@ -124,7 +124,6 @@ public class PeertubeService extends StreamingService {
public void setInstance(PeertubeInstance instance) { public void setInstance(PeertubeInstance instance) {
this.instance = instance; this.instance = instance;
this.getServiceInfo().setName(instance.getName());
} }
@Override @Override