Search in sources :

Example 11 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class PptResourceCacheActivity method pencil.

public void pencil(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 99, 99, 99 });
    memberState.setCurrentApplianceName(Appliance.PENCIL);
    memberState.setStrokeWidth(10);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 12 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method selector.

public void selector(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setCurrentApplianceName(Appliance.SELECTOR);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 13 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method textArea.

public void textArea(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 99, 99, 99 });
    memberState.setCurrentApplianceName(Appliance.TEXT);
    memberState.setStrokeWidth(10);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 14 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomActivity method rectangle.

public void rectangle(MenuItem item) {
    logAction();
    MemberState memberState = new MemberState();
    memberState.setStrokeColor(new int[] { 99, 99, 99 });
    memberState.setCurrentApplianceName(Appliance.RECTANGLE);
    memberState.setStrokeWidth(10);
    memberState.setTextSize(10);
    mRoom.setMemberState(memberState);
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Example 15 with MemberState

use of com.herewhite.sdk.domain.MemberState in project whiteboard-android by netless-io.

the class RoomTest method testSetMemberState.

public void testSetMemberState() {
    MemberState state = new MemberState();
    mRoom.setMemberState(state);
    verify(mockJsBridgeInterface).callHandler("room.setMemberState", new Object[] { state });
}
Also used : MemberState(com.herewhite.sdk.domain.MemberState)

Aggregations

MemberState (com.herewhite.sdk.domain.MemberState)15 Test (org.junit.Test)2 SDKError (com.herewhite.sdk.domain.SDKError)1 Ignore (org.junit.Ignore)1