Easemob Windows SDK
emcursorresult.h
1 /************************************************************
2  * * EaseMob CONFIDENTIAL
3  * __________________
4  * Copyright (C) 2015 EaseMob Technologies. All rights reserved.
5  *
6  * NOTICE: All information contained herein is, and remains
7  * the property of EaseMob Technologies.
8  * Dissemination of this information or reproduction of this material
9  * is strictly forbidden unless prior written permission is obtained
10  * from EaseMob Technologies.
11  */
12 
13 #ifndef __easemob__EMCursorResult__
14 #define __easemob__EMCursorResult__
15 
16 #include <vector>
17 #include <string>
18 
19 #include "embaseobject.h"
20 
21 namespace easemob
22 {
23 
24 class EASEMOB_API EMCursorResult : public EMBaseObject
25 {
26 public:
27  EMCursorResult(const std::vector<EMBaseObjectPtr> &result, const std::string &nextPageCursor) :
28  mResult(result), mNextPageCursor(nextPageCursor) {}
29  virtual ~EMCursorResult() {};
30 
31  EMCursorResult(const EMCursorResult &a) {
32  mResult = a.mResult;
33  mNextPageCursor = a.mNextPageCursor;
34  }
35 
42  const std::string& nextPageCursor() const { return mNextPageCursor; }
43 
50  const std::vector<EMBaseObjectPtr>& result() const { return mResult; }
51 
52 private:
53  std::vector<EMBaseObjectPtr> mResult;
54  std::string mNextPageCursor;
55 };
56 
57 }
58 
59 #endif /* defined(__easemob__EMCursorResult__) */
Definition: emcursorresult.h:24
const std::string & nextPageCursor() const
Get cursor of next page.
Definition: emcursorresult.h:42
const std::vector< EMBaseObjectPtr > & result() const
Get the result of current page.
Definition: emcursorresult.h:50
Definition: emattributevalue.h:28
Definition: embaseobject.h:28