ADL.AuthDetails.toJSON C# (CSharp) Method

toJSON() private method

private toJSON ( ) : string
return string
        internal string toJSON()
        {
            string json = "";
            json = "{" +
                    "\"expires\":" + expires +
                    ",\"userId\":" + userId +
                    ",\"salt\":\"" + salt + "\"" +
                    ",\"signature\":\"" + signature + "\"}";
            return json;
        }

Usage Example

Example #1
0
        internal string toJSON()
        {
            string json = String.Format(@"{{""videoStream"": {0}, 
""autopublishVideo"": {1}, ""autopublishAudio"": {2}, ""url"": ""{3}"", ""scopeId"": ""{4}"",
""authDetails"": {5}}}", videoStream.toJSON(), lowercaseBool(autopublishVideo),
                                        lowercaseBool(autopublishAudio), url, scopeId, authDetails.toJSON());

            return(json);
        }