Aurora.Voice.Whisper.MurmurConfig.ToOSD C# (CSharp) Method

ToOSD() public method

public ToOSD ( ) : OSDMap
return OSDMap
        public OSDMap ToOSD()
        {
            OSDMap map = new OSDMap();

            map["MurmurHost"] = MurmurHost;
            map["MetaIce"] = MetaIce;
            map["ServerVersion"] = ServerVersion;
            map["ServerID"] = ServerID;
            map["GlacierEnabled"] = GlacierEnabled;
            map["GlacierIce"] = GlacierIce;
            map["GlacierUser"] = GlacierUser;
            map["GlacierPass"] = GlacierPass;
            map["ChannelName"] = ChannelName;
            map["IceCB"] = IceCB;

            return map;
        }

Usage Example

示例#1
0
        private byte[] ProcessGet(OSDMap request)
        {
            string       regionName = request["RegionName"];
            MurmurConfig config     = m_service.GetConfiguration(regionName);
            OSDMap       response   = config.ToOSD();
            string       resp       = OSDParser.SerializeJsonString(response);

            if (resp == "")
            {
                return(new byte[0]);
            }
            return(Util.UTF8.GetBytes(resp));
        }
MurmurConfig