I have a foreground service which I trigger on my Splash Activity
Intent StartServiceIntent;
StartServiceIntent = new Intent(this, typeof(PagesService));
StartServiceIntent.PutExtra("Table", LINKMODEL);
Log.Info("101028", "Connectted");
StartService(StartServiceIntent);
At point where I am using PutExtra
, I want to send a data model items in a list List<LINKMODEL>
to the service, the following data model
public class LINKMODEL
{
public string Id { get; set; }
public string Title { get; set; }
public string Url { get; set; }
}
It seems like the service only accepts few parameters such as array etc,
How do I send a whole model to the service?