refactorise
This commit is contained in:
parent
5137c4913f
commit
a454e8e602
10 changed files with 233 additions and 75 deletions
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Android.App;
|
||||
using Android.Content;
|
||||
using Android.OS;
|
||||
using Android.Runtime;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using BookAStar.Droid.Interfaces;
|
||||
|
||||
namespace BookAStar.Droid.Services.GCMHandlers
|
||||
{
|
||||
abstract class GCMessageHandler : IGCMessageHandler
|
||||
{
|
||||
protected Context context;
|
||||
protected NotificationManager notificationManager;
|
||||
protected Notification.Builder notificationBuilder;
|
||||
public GCMessageHandler(Context context,
|
||||
NotificationManager notificationManager,
|
||||
Notification.Builder notificationBuilder)
|
||||
{
|
||||
this.context = context;
|
||||
this.notificationBuilder = notificationBuilder;
|
||||
this.notificationManager = notificationManager;
|
||||
}
|
||||
|
||||
public abstract void Handle(string from, Bundle data);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue