Exemplo n.º 1
0
        public void OBOUserLookUpTest()
        {
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            Assert.IsTrue(user != null);
        }
        public void OBOUserLookUpTest()
        {
            SymConfig       symConfig       = new SymConfig();
            SymConfigLoader symConfigLoader = new SymConfigLoader();

            symConfig = symConfigLoader.loadFromFile("C:/Users/Michael/Documents/Visual Studio 2017/Projects/apiClientDotNet/apiClientDotNetTest/Resources/testConfig3.json");
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            Assert.IsTrue(user != null);
        }
Exemplo n.º 3
0
        public void OBOUserAndRoomSeaerch()
        {
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            StreamClient  streamClient = client.getStreamsClient();
            List <string> streamTypes  = new List <string>();

            streamTypes.Add("IM");
            streamTypes.Add("ROOM");
            List <StreamListItem> result = streamClient.getUserStreams(streamTypes, false);

            Assert.IsTrue(user != null);
        }
Exemplo n.º 4
0
        public void OBOIMCreateTest()
        {
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            StreamClient streamClient = new StreamClient(client);

            List <long> userids = new List <long>();

            userids.Add(user.id);
            String streamid = streamClient.getUserListIM(userids);

            Assert.IsTrue(streamid != null);
        }
        public void OBOUserAndRoomSeaerch()
        {
            SymConfig       symConfig       = new SymConfig();
            SymConfigLoader symConfigLoader = new SymConfigLoader();

            symConfig = symConfigLoader.loadFromFile("C:/Users/Michael/Documents/Visual Studio 2017/Projects/apiClientDotNet/apiClientDotNetTest/Resources/testConfig3.json");
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            StreamClient  streamClient = client.getStreamsClient();
            List <string> streamTypes  = new List <string>();

            streamTypes.Add("IM");
            streamTypes.Add("ROOM");
            List <StreamListItem> result = streamClient.getUserStreams(streamTypes, false);

            Assert.IsTrue(user != null);
        }
        public void OBOIMCreateTest()
        {
            SymConfig       symConfig       = new SymConfig();
            SymConfigLoader symConfigLoader = new SymConfigLoader();

            symConfig = symConfigLoader.loadFromFile("C:/Users/Michael/Documents/Visual Studio 2017/Projects/apiClientDotNet/apiClientDotNetTest/Resources/testConfig3.json");
            SymOBOAuth oboAuth = new SymOBOAuth(symConfig);

            oboAuth.sessionAppAuthenticate();
            SymOBOUserAuth auth   = oboAuth.getUserAuth("*****@*****.**");
            SymOBOClient   client = SymOBOClient.initOBOClient(symConfig, auth);

            UserClient userClient = client.getUsersClient();
            UserInfo   user       = userClient.getUserFromUsername("*****@*****.**");

            StreamClient streamClient = new StreamClient(client);

            List <long> userids = new List <long>();

            userids.Add(user.id);
            String streamid = streamClient.getUserListIM(userids);

            Assert.IsTrue(streamid != null);
        }