First of all we add a Windows Phone Application project. It adds
App.xaml and MainPage.xaml by default. We write one more xaml page
JoinPage.xaml. Let us describe all important files for comprehension of
code flow.

User click on Join Game on this page and settings related to game are updated.

It initializes the SDK with your applications credentials.

public JoinPage()
{
InitializeComponent();
// Initialize the SDK with your applications credentials that you received
// after creating the app from http://apphq.shephertz.com
WarpClient.initialize(GlobalContext.API_KEY, GlobalContext.SECRET_KEY);
// Keep a reference of the SDK singleton handy for later use.
GlobalContext.warpClient = WarpClient.GetInstance();
}

Initiate the connection ,create and add listener objects to receive callback events for the APIs used.

After getting the success status of the Join Room operation in
the onJoinRoomDone callback of the RoomReqListener we use SubscribeRoom
method.

After getting the success status of the SubscribeRoom operation
in the onSubscribeRoomDone callback of the RoomReqListener we use
GetLiveRoomInfo method. We get GetLiveRoomInfo’s callback in same
listener and decide if user is first or second after getting the No. of
users in Room from callback info.Note: We have already creted a room
from AppHq which is having Maximum No Of User = 2. We can create room
according to our Game requirement.