Beispiel #1
0
 private MusicEndpoint FillIn(BeamJson src, MusicEndpoint dest)
 {
     dest.Username = src.user;
     dest.Server   = src.host;
     dest.Port     = src.supports_tls ? src.ssl_port : src.port;
     dest.Protocol = src.supports_tls ? Protocols.https : Protocols.http;
     return(dest);
 }
Beispiel #2
0
 private MusicEndpoint CreateBeamEndpoint(BeamJson details)
 {
     return(FillIn(details, new BeamEndpoint("", 80, "", false)));
 }