Package com.github.hipchat.api

Examples of com.github.hipchat.api.UserId


                }
            }

        }

        UserId from = UserId.create(fromUserId.toString(), fromName);
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
        Date date = null;
        try
        {
            date = sdf.parse(dateString);
View Full Code Here


    public void testMessageRoom()
    {
        HipChat hipchat = new HipChat(HIPCHAT_KEY);
        Room room = hipchat.getRoom(TEST_ROOM_ID);
        assertNotNull(room);
        UserId from = UserId.create("api", "API UnitTest");
        assertTrue(room.sendMessage("test message", from, false, Color.PURPLE));
    }
View Full Code Here

    @Test
    public void testGetUser()
    {
        HipChat hipchat = new HipChat(HIPCHAT_KEY);
        UserId id = UserId.create(TEST_ROOM_OWNER);
        User user = hipchat.getUser(id);

        assertNotNull(user);
        assertEquals(user, id);
    }
View Full Code Here

    @Test
    public void testUpdateUser()
    {
        HipChat hipchat = new HipChat(HIPCHAT_KEY);
        UserId id = UserId.create(TEST_ROOM_OWNER);
        User user = hipchat.getUser(id);

        assertNotNull(user);
        assertEquals(user, id);
View Full Code Here

TOP

Related Classes of com.github.hipchat.api.UserId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.