ng release and blank controls
This commit is contained in:
25
source/io/newgrounds/components/GatewayComponent.hx
Normal file
25
source/io/newgrounds/components/GatewayComponent.hx
Normal file
@@ -0,0 +1,25 @@
|
||||
package io.newgrounds.components;
|
||||
|
||||
import io.newgrounds.objects.events.Result;
|
||||
import io.newgrounds.NGLite;
|
||||
|
||||
class GatewayComponent extends Component {
|
||||
|
||||
public function new (core:NGLite){ super(core); }
|
||||
|
||||
public function getDatetime():Call<GetDateTimeResult> {
|
||||
|
||||
return new Call<GetDateTimeResult>(_core, "Gateway.getDatetime");
|
||||
}
|
||||
|
||||
public function getVersion():Call<GetVersionResult> {
|
||||
|
||||
return new Call<GetVersionResult>(_core, "Gateway.getVersion");
|
||||
}
|
||||
|
||||
public function ping():Call<PingResult> {
|
||||
|
||||
return new Call<PingResult>(_core, "Gateway.ping");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user