2016-07-20 12:33:16 +02:00
|
|
|
using BookAStar.Model.Auth.Account;
|
2016-09-18 00:24:29 +02:00
|
|
|
using System;
|
2016-09-10 00:53:08 +02:00
|
|
|
using Xamarin.Forms;
|
2016-07-21 22:02:53 +02:00
|
|
|
using Yavsc.Models.Identity;
|
2016-07-20 12:33:16 +02:00
|
|
|
|
|
|
|
|
namespace BookAStar
|
|
|
|
|
{
|
|
|
|
|
public interface IPlatform
|
|
|
|
|
{
|
|
|
|
|
void OpenWeb (string Uri);
|
|
|
|
|
|
|
|
|
|
// TODO Better
|
|
|
|
|
|
|
|
|
|
string GCMStatusMessage { get; }
|
|
|
|
|
|
|
|
|
|
bool EnablePushNotifications (bool enable);
|
|
|
|
|
|
|
|
|
|
void AddAccount();
|
|
|
|
|
|
|
|
|
|
void RevokeAccount(string userName);
|
|
|
|
|
|
2016-07-21 22:02:53 +02:00
|
|
|
IGCMDeclaration GetDeviceInfo();
|
2016-07-20 12:33:16 +02:00
|
|
|
|
2016-07-21 22:02:53 +02:00
|
|
|
TAnswer InvokeApi<TAnswer>(string method, object arg);
|
|
|
|
|
|
|
|
|
|
object InvokeApi(string method, object arg);
|
2016-09-10 00:53:08 +02:00
|
|
|
|
2016-09-18 00:24:29 +02:00
|
|
|
View CreateMarkdownView(string markdown, Action<string> update);
|
2016-07-20 12:33:16 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|