package de.golfgl.gdxgamesvcs;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;


public class GpgsClientTest extends GameServiceClientTest<GpgsClient>
{
	public static void main(String[] args) {
		LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
		config.width = 800;
		config.height = 950;
		new LwjglApplication(new GpgsClientTest(), config);
	}
	
	private TextField appName;
	private TextField clientSecretPath;

	public GpgsClientTest() {
		super(new GpgsClient());
	}
	
	@Override
	protected void createServiceSpecificInitialization(Table table) 
	{
		appName = createField(table, "app.name", "Application Name", "");
		
		clientSecretPath = createField(table, "client.secret.path", "Client Secret Path", 
						Gdx.files.absolute(System.getProperty("user.home")).child("client_secret.json").path());
		
		createAction(table, "initialize", new Runnable() {
			@Override
			public void run() {
				gsClient.initialize(appName.getText(), Gdx.files.absolute(clientSecretPath.getText()));
			}
		});
	}
	
}

@@ -25,16 +25,53 @@
 esvcs;%0A%0A
+import com.badlogic.gdx.Application;%0A
 import c
@@ -559,16 +559,107 @@
  = 950;%0A
+%09%09%0A%09%09GpgsClient client = new GpgsClient();%0A%09%09client.setLogLevel(Application.LOG_ERROR);%0A%09%09%0A
 %09%09new Lw
@@ -692,16 +692,22 @@
 entTest(
+client
 ), confi
@@ -780,16 +780,17 @@
 etPath;%0A
+%09
 %0A%09public
@@ -805,16 +805,35 @@
 entTest(
+GpgsClient gsClient
 ) %7B%0A%09%09su
@@ -836,30 +836,24 @@
 %09%09super(
-new Gp
 gsClient
 ());%0A%09%7D%0A
@@ -848,17 +848,14 @@
 ient
-()
 );%0A%09%7D%0A
-%09
 %0A%09@O

set log level in client test