lfoust avatar lfoust committed cf1050c Merge

Merge

Comments (0)

Files changed (15)

trunk/source/Stacky.Net35/Stacky.Net35.csproj

     <Compile Include="..\Stacky\Entities\Error.cs">
       <Link>Entities\Error.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\Event.cs">
+      <Link>Entities\Event.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\Filter.cs">
       <Link>Entities\Filter.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\InboxItem.cs">
+      <Link>Entities\InboxItem.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\MigrationInfo.cs">
       <Link>Entities\MigrationInfo.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\ErrorCode.cs">
       <Link>Enums\ErrorCode.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\EventType.cs">
+      <Link>Enums\EventType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\FavoriteQuestionsSort.cs">
       <Link>Enums\FavoriteQuestionsSort.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\FilterType.cs">
       <Link>Enums\FilterType.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\InboxItemType.cs">
+      <Link>Enums\InboxItemType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\PostEventType.cs">
       <Link>Enums\PostEventType.cs</Link>
     </Compile>
     <Compile Include="StackyClientAsync\AnswerMethods.cs" />
     <Compile Include="StackyClientAsync\BadgeMethods.cs" />
     <Compile Include="StackyClientAsync\CommentMethods.cs" />
+    <Compile Include="StackyClientAsync\EventMethods.cs" />
+    <Compile Include="StackyClientAsync\InboxMethods.cs" />
     <Compile Include="StackyClientAsync\NetworkMethods.cs" />
     <Compile Include="StackyClientAsync\PostMethods.cs" />
     <Compile Include="StackyClientAsync\QuestionMethods.cs" />
     <Compile Include="StackyClient\AnswerMethods.cs" />
     <Compile Include="StackyClient\BadgeMethods.cs" />
     <Compile Include="StackyClient\CommentMethods.cs" />
+    <Compile Include="StackyClient\EventMethods.cs" />
+    <Compile Include="StackyClient\InboxMethods.cs" />
     <Compile Include="StackyClient\NetworkMethods.cs" />
     <Compile Include="StackyClient\PostMethods.cs" />
     <Compile Include="StackyClient\QuestionMethods.cs" />

trunk/source/Stacky.Net35/StackyClient/EventMethods.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Stacky
+{
+    public partial class StackyClient
+    {
+        public IPagedList<Event> GetEvents(string accessToken, DateTime? since, Options options)
+        {
+            var response = MakeRequest<Event>("events", null, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            });
+            return new PagedList<Event>(response);
+        }
+    }
+}

trunk/source/Stacky.Net35/StackyClient/InboxMethods.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Stacky
+{
+    public partial class StackyClient
+    {
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public IPagedList<InboxItem> GetGlobalInbox(string accessToken, Options options)
+        {
+            var response = MakeRequest<InboxItem>("inbox", null, new
+            {
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                filter = options.Filter
+            });
+            return new PagedList<InboxItem>(response);
+        }
+
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public IPagedList<InboxItem> GetUnreadGlobalInbox(string accessToken, DateTime? since, Options options)
+        {
+            var response = MakeRequest<InboxItem>("inbox", new string[] { "unread" }, new
+            {
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            });
+            return new PagedList<InboxItem>(response);
+        }
+    }
+}

trunk/source/Stacky.Net35/StackyClientAsync/EventMethods.cs

+using System;
+using System.Collections.Generic;
+
+namespace Stacky
+{
+#if SILVERLIGHT
+    public partial class StackyClient
+#else
+    public partial class StackyClientAsync
+#endif
+    {
+        public void GetEvents(string accessToken, Action<IPagedList<Event>> onSuccess, Action<ApiException> onError,
+            DateTime? since, Options options)
+        {
+            MakeRequest<Event>("events", null, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<Event>(response)), onError);
+        }
+    }
+}

trunk/source/Stacky.Net35/StackyClientAsync/InboxMethods.cs

+using System;
+using System.Collections.Generic;
+
+namespace Stacky
+{
+#if SILVERLIGHT
+    public partial class StackyClient
+#else
+    public partial class StackyClientAsync
+#endif
+    {
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public void GetGlobalInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError, Options options)
+        {
+            MakeRequest<InboxItem>("inbox", null, new
+            {
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public void GetUnreadGlobalInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError,
+            DateTime? since, Options options)
+        {
+            MakeRequest<InboxItem>("inbox", new string[] { "unread" }, new
+            {
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+    }
+}

trunk/source/Stacky.Net35/StackyClientAsync/UserMethods.cs

         {
             Execute<User, Int32>("users", new string[] { "moderators", "elected" }, onSuccess, onError, options);
         }
+
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/me-unread-inbox
+        /// </summary>
+        public void GetMyUnreadInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError,
+            DateTime? since, Options options)
+        {
+            MakeRequest<InboxItem>("me", new string[] { "inbox", "unread" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-unread-inbox
+        /// </summary>
+        public void GetUnreadInbox(int userId, string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError,
+            DateTime? since, Options options)
+        {
+            MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox", "unread" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                since = GetDateValue(since),
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-inbox
+        /// </summary>
+        public void GetInbox(int userId, string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError, Options options)
+        {
+            MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-inbox
+        /// </summary>
+        public void GetMyInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError, Options options)
+        {
+            MakeRequest<InboxItem>("me", new string[] { "inbox" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = options.Page ?? null,
+                pagesize = options.PageSize ?? null,
+                filter = options.Filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
     }
 }

trunk/source/Stacky.Silverlight/Stacky.Silverlight.csproj

     <Compile Include="..\Stacky\Entities\Entity.cs">
       <Link>Entities\Entity.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\Event.cs">
+      <Link>Entities\Event.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\Filter.cs">
       <Link>Entities\Filter.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\InboxItem.cs">
+      <Link>Entities\InboxItem.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\MigrationInfo.cs">
       <Link>Entities\MigrationInfo.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\ErrorCode.cs">
       <Link>Enums\ErrorCode.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\EventType.cs">
+      <Link>Enums\EventType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\FavoriteQuestionsSort.cs">
       <Link>Enums\FavoriteQuestionsSort.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\FilterType.cs">
       <Link>Enums\FilterType.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\InboxItemType.cs">
+      <Link>Enums\InboxItemType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\PostEventType.cs">
       <Link>Enums\PostEventType.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\StackyClientAsync\CommentMethods.cs">
       <Link>StackyClient\CommentMethods.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\StackyClientAsync\EventMethods.cs">
+      <Link>StackyClient\EventMethods.cs</Link>
+    </Compile>
+    <Compile Include="..\Stacky\StackyClientAsync\InboxMethods.cs">
+      <Link>StackyClient\InboxMethods.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\StackyClientAsync\NetworkMethods.cs">
       <Link>StackyClient\NetworkMethods.cs</Link>
     </Compile>

trunk/source/Stacky.WindowsPhone/Stacky.WindowsPhone.csproj

     <Compile Include="..\Stacky\Entities\Entity.cs">
       <Link>Entities\Entity.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\Event.cs">
+      <Link>Entities\Event.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\Filter.cs">
       <Link>Entities\Filter.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Entities\InboxItem.cs">
+      <Link>Entities\InboxItem.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Entities\MigrationInfo.cs">
       <Link>Entities\MigrationInfo.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\ErrorCode.cs">
       <Link>Enums\ErrorCode.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\EventType.cs">
+      <Link>Enums\EventType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\FavoriteQuestionsSort.cs">
       <Link>Enums\FavoriteQuestionsSort.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\Enums\FilterType.cs">
       <Link>Enums\FilterType.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\Enums\InboxItemType.cs">
+      <Link>Enums\InboxItemType.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\Enums\PostEventType.cs">
       <Link>Enums\PostEventType.cs</Link>
     </Compile>
     <Compile Include="..\Stacky\StackyClientAsync\CommentMethods.cs">
       <Link>StackyClient\CommentMethods.cs</Link>
     </Compile>
+    <Compile Include="..\Stacky\StackyClientAsync\EventMethods.cs">
+      <Link>StackyClient\EventMethods.cs</Link>
+    </Compile>
+    <Compile Include="..\Stacky\StackyClientAsync\InboxMethods.cs">
+      <Link>StackyClient\InboxMethods.cs</Link>
+    </Compile>
     <Compile Include="..\Stacky\StackyClientAsync\NetworkMethods.cs">
       <Link>StackyClient\NetworkMethods.cs</Link>
     </Compile>

trunk/source/Stacky/Stacky.csproj

     <Compile Include="StackyClientAsync\AnswerMethods.cs" />
     <Compile Include="StackyClientAsync\BadgeMethods.cs" />
     <Compile Include="StackyClientAsync\CommentMethods.cs" />
+    <Compile Include="StackyClientAsync\EventMethods.cs" />
+    <Compile Include="StackyClientAsync\InboxMethods.cs" />
     <Compile Include="StackyClientAsync\NetworkMethods.cs" />
     <Compile Include="StackyClientAsync\PostMethods.cs" />
     <Compile Include="StackyClientAsync\PrivilegeMethods.cs" />

trunk/source/Stacky/StackyClient/EventMethods.cs

 {
     public partial class StackyClient
     {
-        public IPagedList<Event> GetEvents(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null)
+        public IPagedList<Event> GetEvents(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<Event>("events", null, new
             {
                 access_token = accessToken,
                 page = page ?? null,
                 pagesize = pageSize ?? null,
-                since = GetDateValue(since)
+                since = GetDateValue(since),
+                filter = filter
             });
             return new PagedList<Event>(response);
         }

trunk/source/Stacky/StackyClient/InboxMethods.cs

         /// <summary>
         /// See: http://api.stackexchange.com/docs/inbox
         /// </summary>
-        public IPagedList<InboxItem> GetGlobalInbox(string accessToken, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetGlobalInbox(string accessToken, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("inbox", null, new
             {
                 access_token = accessToken,
                 page = page ?? null,
-                pagesize = pageSize ?? null
+                pagesize = pageSize ?? null,
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }
         /// <summary>
         /// See: http://api.stackexchange.com/docs/inbox
         /// </summary>
-        public IPagedList<InboxItem> GetUnreadGlobalInbox(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetUnreadGlobalInbox(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("inbox", new string[] { "unread" }, new
             {
                 access_token = accessToken,
                 page = page ?? null,
                 pagesize = pageSize ?? null,
-                since = GetDateValue(since)
+                since = GetDateValue(since),
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }

trunk/source/Stacky/StackyClient/UserMethods.cs

         /// <summary>
         /// See: http://api.stackexchange.com/docs/me-unread-inbox
         /// </summary>
-        public IPagedList<InboxItem> GetMyUnreadInbox(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetMyUnreadInbox(string accessToken, DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("me", new string[] { "inbox", "unread" }, new
             {
                 access_token = accessToken,
                 page = page ?? null,
                 pagesize = pageSize ?? null,
-                since = GetDateValue(since)
+                since = GetDateValue(since),
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }
         /// <summary>
         /// See: https://api.stackexchange.com/docs/user-unread-inbox
         /// </summary>
-        public IPagedList<InboxItem> GetUnreadInbox(int userId, string accessToken, DateTime? since = null, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetUnreadInbox(int userId, string accessToken, DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox", "unread" }, new
             {
                 access_token = accessToken,
                 page = page ?? null,
                 pagesize = pageSize ?? null,
-                since = GetDateValue(since)
+                since = GetDateValue(since),
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }
         /// <summary>
         /// See: https://api.stackexchange.com/docs/user-inbox
         /// </summary>
-        public IPagedList<InboxItem> GetInbox(int userId, string accessToken, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetInbox(int userId, string accessToken, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox" }, new
             {
                 site = this.SiteUrlName,
                 access_token = accessToken,
                 page = page ?? null,
-                pagesize = pageSize ?? null
+                pagesize = pageSize ?? null,
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }
         /// <summary>
         /// See: https://api.stackexchange.com/docs/user-inbox
         /// </summary>
-        public IPagedList<InboxItem> GetMyInbox(string accessToken, int? page = null, int? pageSize = null)
+        public IPagedList<InboxItem> GetMyInbox(string accessToken, int? page = null, int? pageSize = null, string filter = null)
         {
             var response = MakeRequest<InboxItem>("me", new string[] { "inbox" }, new
             {
                 site = this.SiteUrlName,
                 access_token = accessToken,
                 page = page ?? null,
-                pagesize = pageSize ?? null
+                pagesize = pageSize ?? null,
+                filter = filter
             });
             return new PagedList<InboxItem>(response);
         }
-
-
     }
 }

trunk/source/Stacky/StackyClientAsync/EventMethods.cs

+using System;
+using System.Collections.Generic;
+
+namespace Stacky
+{
+#if SILVERLIGHT
+    public partial class StackyClient
+#else
+    public partial class StackyClientAsync
+#endif
+    {
+        public void GetEvents(string accessToken, Action<IPagedList<Event>> onSuccess, Action<ApiException> onError = null,
+            DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<Event>("events", null, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                since = GetDateValue(since),
+                filter = filter
+            }, response => onSuccess(new PagedList<Event>(response)), onError);
+        }
+    }
+}

trunk/source/Stacky/StackyClientAsync/InboxMethods.cs

+using System;
+using System.Collections.Generic;
+
+namespace Stacky
+{
+#if SILVERLIGHT
+    public partial class StackyClient
+#else
+    public partial class StackyClientAsync
+#endif
+    {
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public void GetGlobalInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null,
+            int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("inbox", null, new
+            {
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/inbox
+        /// </summary>
+        public void GetUnreadGlobalInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null,
+            DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("inbox", new string[] { "unread" }, new
+            {
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                since = GetDateValue(since),
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+    }
+}

trunk/source/Stacky/StackyClientAsync/UserMethods.cs

                 onSuccess, onError,
                 sortBy, sortDirection, page, pageSize, fromDate, toDate, min, max, filter);
         }
+
+        /// <summary>
+        /// See: http://api.stackexchange.com/docs/me-unread-inbox
+        /// </summary>
+        public void GetMyUnreadInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null, 
+            DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("me", new string[] { "inbox", "unread" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                since = GetDateValue(since),
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-unread-inbox
+        /// </summary>
+        public void GetUnreadInbox(int userId, string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null,
+            DateTime? since = null, int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox", "unread" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                since = GetDateValue(since),
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-inbox
+        /// </summary>
+        public void GetInbox(int userId, string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null,
+            int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("users", new string[] { userId.ToString(), "inbox" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
+
+        /// <summary>
+        /// See: https://api.stackexchange.com/docs/user-inbox
+        /// </summary>
+        public void GetMyInbox(string accessToken, Action<IPagedList<InboxItem>> onSuccess, Action<ApiException> onError = null,
+            int? page = null, int? pageSize = null, string filter = null)
+        {
+            MakeRequest<InboxItem>("me", new string[] { "inbox" }, new
+            {
+                site = this.SiteUrlName,
+                access_token = accessToken,
+                page = page ?? null,
+                pagesize = pageSize ?? null,
+                filter = filter
+            }, response => onSuccess(new PagedList<InboxItem>(response)), onError);
+        }
     }
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.