Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea.calegari authored and andrea.calegari committed Nov 21, 2017
2 parents 8eca9d9 + ed0aedb commit 4c1b5a6
Showing 1 changed file with 2 additions and 41 deletions.
43 changes: 2 additions & 41 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,45 +88,6 @@ NearItManager.Instance.RefreshConfigs(<IRecipeRefreshListener>);
<br>
## Portable Class Library

Implement `INearFunc` and `IContentManager` interfaces.
Implement `IContentManager` interface that allows you to manage the notification using a common type.


### INearFunc Interface

This interface allows to use the main methods:

`void RefreshConfiguration();`

`void SendTrack(XCTrackingInfo trackingInfo, string value);`

`void SendEvent(XCEvent ev);`

`void GetCoupon();`

`void SetUserData(string key, string value);`

`void GetProfileId();`

`void SetProfileId(string profile);`

`void ResetProfileId();`

`void OptOut();`

### IContentManager Interface

This interface allows to manage the notification using a common type:

`void GotXContentNotification(XCContentNotification notification);`

`void GotXCouponNotification(XCCouponNotification notification);`

`void GotXCustomJSONNotification(XCCustomJSONNotification notification);`

`void GotXFeedbackNotification(XCFeedbackNotification notification);`

`void GotXSimpleNotification(XCSimpleNotification notification);`

**Remember** to call the method `NearPCL.SetContentManager(this);` in the constructor of the class where you implement this interface.
<br><br>
**NOTE** The methods will be explain during the docs.
**Remember** to call the method `NearPCL.SetContentManager(this);` in the constructor of the class where you implement this interface.

0 comments on commit 4c1b5a6

Please sign in to comment.