Subversion Repositories SmartDukaan

Rev

Rev 3374 | Rev 3385 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3374 Rev 3378
Line 96... Line 96...
96
 
96
 
97
    public Tracker getTrackerById(long id) throws UserAffiliateException, TException;
97
    public Tracker getTrackerById(long id) throws UserAffiliateException, TException;
98
 
98
 
99
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, TException;
99
    public List<Affiliate> getAffiliatesByMasterAffiliate(long id) throws UserAffiliateException, TException;
100
 
100
 
101
    public long addTrackLog(long affiliateId, long userId, String event, String url, String data, long addedOn) throws UserAffiliateException, TException;
101
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, TException;
102
 
102
 
103
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, TException;
103
    public TrackLog getTrackLogById(long id) throws UserAffiliateException, TException;
104
 
104
 
105
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, TException;
105
    public List<TrackLog> getTrackLogsByAffiliate(long affiliateId, long startDate, long endDate) throws UserAffiliateException, TException;
106
 
106
 
Line 1498... Line 1498...
1498
        throw result.utx;
1498
        throw result.utx;
1499
      }
1499
      }
1500
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1500
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAffiliatesByMasterAffiliate failed: unknown result");
1501
    }
1501
    }
1502
 
1502
 
1503
    public long addTrackLog(long affiliateId, long userId, String event, String url, String data, long addedOn) throws UserAffiliateException, TException
1503
    public long addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws UserAffiliateException, TException
1504
    {
1504
    {
1505
      send_addTrackLog(affiliateId, userId, event, url, data, addedOn);
1505
      send_addTrackLog(affiliateId, userId, event, url, data, addedOn);
1506
      return recv_addTrackLog();
1506
      return recv_addTrackLog();
1507
    }
1507
    }
1508
 
1508
 
1509
    public void send_addTrackLog(long affiliateId, long userId, String event, String url, String data, long addedOn) throws TException
1509
    public void send_addTrackLog(long affiliateId, long userId, TrackLogType event, String url, String data, long addedOn) throws TException
1510
    {
1510
    {
1511
      oprot_.writeMessageBegin(new TMessage("addTrackLog", TMessageType.CALL, seqid_));
1511
      oprot_.writeMessageBegin(new TMessage("addTrackLog", TMessageType.CALL, seqid_));
1512
      addTrackLog_args args = new addTrackLog_args();
1512
      addTrackLog_args args = new addTrackLog_args();
1513
      args.affiliateId = affiliateId;
1513
      args.affiliateId = affiliateId;
1514
      args.userId = userId;
1514
      args.userId = userId;
Line 28193... Line 28193...
28193
  public static class addTrackLog_args implements TBase<addTrackLog_args._Fields>, java.io.Serializable, Cloneable, Comparable<addTrackLog_args>   {
28193
  public static class addTrackLog_args implements TBase<addTrackLog_args._Fields>, java.io.Serializable, Cloneable, Comparable<addTrackLog_args>   {
28194
    private static final TStruct STRUCT_DESC = new TStruct("addTrackLog_args");
28194
    private static final TStruct STRUCT_DESC = new TStruct("addTrackLog_args");
28195
 
28195
 
28196
    private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)1);
28196
    private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)1);
28197
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)2);
28197
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)2);
28198
    private static final TField EVENT_FIELD_DESC = new TField("event", TType.STRING, (short)3);
28198
    private static final TField EVENT_FIELD_DESC = new TField("event", TType.I32, (short)3);
28199
    private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)4);
28199
    private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)4);
28200
    private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)5);
28200
    private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)5);
28201
    private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)6);
28201
    private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)6);
28202
 
28202
 
28203
    private long affiliateId;
28203
    private long affiliateId;
28204
    private long userId;
28204
    private long userId;
28205
    private String event;
28205
    private TrackLogType event;
28206
    private String url;
28206
    private String url;
28207
    private String data;
28207
    private String data;
28208
    private long addedOn;
28208
    private long addedOn;
28209
 
28209
 
28210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28210
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28211
    public enum _Fields implements TFieldIdEnum {
28211
    public enum _Fields implements TFieldIdEnum {
28212
      AFFILIATE_ID((short)1, "affiliateId"),
28212
      AFFILIATE_ID((short)1, "affiliateId"),
28213
      USER_ID((short)2, "userId"),
28213
      USER_ID((short)2, "userId"),
-
 
28214
      /**
-
 
28215
       * 
-
 
28216
       * @see TrackLogType
-
 
28217
       */
28214
      EVENT((short)3, "event"),
28218
      EVENT((short)3, "event"),
28215
      URL((short)4, "url"),
28219
      URL((short)4, "url"),
28216
      DATA((short)5, "data"),
28220
      DATA((short)5, "data"),
28217
      ADDED_ON((short)6, "addedOn");
28221
      ADDED_ON((short)6, "addedOn");
28218
 
28222
 
Line 28277... Line 28281...
28277
      put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
28281
      put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
28278
          new FieldValueMetaData(TType.I64)));
28282
          new FieldValueMetaData(TType.I64)));
28279
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
28283
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
28280
          new FieldValueMetaData(TType.I64)));
28284
          new FieldValueMetaData(TType.I64)));
28281
      put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
28285
      put(_Fields.EVENT, new FieldMetaData("event", TFieldRequirementType.DEFAULT, 
28282
          new FieldValueMetaData(TType.STRING)));
28286
          new EnumMetaData(TType.ENUM, TrackLogType.class)));
28283
      put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
28287
      put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
28284
          new FieldValueMetaData(TType.STRING)));
28288
          new FieldValueMetaData(TType.STRING)));
28285
      put(_Fields.DATA, new FieldMetaData("data", TFieldRequirementType.DEFAULT, 
28289
      put(_Fields.DATA, new FieldMetaData("data", TFieldRequirementType.DEFAULT, 
28286
          new FieldValueMetaData(TType.STRING)));
28290
          new FieldValueMetaData(TType.STRING)));
28287
      put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
28291
      put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
Line 28296... Line 28300...
28296
    }
28300
    }
28297
 
28301
 
28298
    public addTrackLog_args(
28302
    public addTrackLog_args(
28299
      long affiliateId,
28303
      long affiliateId,
28300
      long userId,
28304
      long userId,
28301
      String event,
28305
      TrackLogType event,
28302
      String url,
28306
      String url,
28303
      String data,
28307
      String data,
28304
      long addedOn)
28308
      long addedOn)
28305
    {
28309
    {
28306
      this();
28310
      this();
Line 28388... Line 28392...
28388
 
28392
 
28389
    public void setUserIdIsSet(boolean value) {
28393
    public void setUserIdIsSet(boolean value) {
28390
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
28394
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
28391
    }
28395
    }
28392
 
28396
 
-
 
28397
    /**
-
 
28398
     * 
-
 
28399
     * @see TrackLogType
-
 
28400
     */
28393
    public String getEvent() {
28401
    public TrackLogType getEvent() {
28394
      return this.event;
28402
      return this.event;
28395
    }
28403
    }
28396
 
28404
 
-
 
28405
    /**
-
 
28406
     * 
-
 
28407
     * @see TrackLogType
-
 
28408
     */
28397
    public addTrackLog_args setEvent(String event) {
28409
    public addTrackLog_args setEvent(TrackLogType event) {
28398
      this.event = event;
28410
      this.event = event;
28399
      return this;
28411
      return this;
28400
    }
28412
    }
28401
 
28413
 
28402
    public void unsetEvent() {
28414
    public void unsetEvent() {
Line 28505... Line 28517...
28505
 
28517
 
28506
      case EVENT:
28518
      case EVENT:
28507
        if (value == null) {
28519
        if (value == null) {
28508
          unsetEvent();
28520
          unsetEvent();
28509
        } else {
28521
        } else {
28510
          setEvent((String)value);
28522
          setEvent((TrackLogType)value);
28511
        }
28523
        }
28512
        break;
28524
        break;
28513
 
28525
 
28514
      case URL:
28526
      case URL:
28515
        if (value == null) {
28527
        if (value == null) {
Line 28756... Line 28768...
28756
              } else { 
28768
              } else { 
28757
                TProtocolUtil.skip(iprot, field.type);
28769
                TProtocolUtil.skip(iprot, field.type);
28758
              }
28770
              }
28759
              break;
28771
              break;
28760
            case EVENT:
28772
            case EVENT:
28761
              if (field.type == TType.STRING) {
28773
              if (field.type == TType.I32) {
28762
                this.event = iprot.readString();
28774
                this.event = TrackLogType.findByValue(iprot.readI32());
28763
              } else { 
28775
              } else { 
28764
                TProtocolUtil.skip(iprot, field.type);
28776
                TProtocolUtil.skip(iprot, field.type);
28765
              }
28777
              }
28766
              break;
28778
              break;
28767
            case URL:
28779
            case URL:
Line 28804... Line 28816...
28804
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28816
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28805
      oprot.writeI64(this.userId);
28817
      oprot.writeI64(this.userId);
28806
      oprot.writeFieldEnd();
28818
      oprot.writeFieldEnd();
28807
      if (this.event != null) {
28819
      if (this.event != null) {
28808
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
28820
        oprot.writeFieldBegin(EVENT_FIELD_DESC);
28809
        oprot.writeString(this.event);
28821
        oprot.writeI32(this.event.getValue());
28810
        oprot.writeFieldEnd();
28822
        oprot.writeFieldEnd();
28811
      }
28823
      }
28812
      if (this.url != null) {
28824
      if (this.url != null) {
28813
        oprot.writeFieldBegin(URL_FIELD_DESC);
28825
        oprot.writeFieldBegin(URL_FIELD_DESC);
28814
        oprot.writeString(this.url);
28826
        oprot.writeString(this.url);
Line 28841... Line 28853...
28841
      if (!first) sb.append(", ");
28853
      if (!first) sb.append(", ");
28842
      sb.append("event:");
28854
      sb.append("event:");
28843
      if (this.event == null) {
28855
      if (this.event == null) {
28844
        sb.append("null");
28856
        sb.append("null");
28845
      } else {
28857
      } else {
-
 
28858
        String event_name = event.name();
-
 
28859
        if (event_name != null) {
-
 
28860
          sb.append(event_name);
-
 
28861
          sb.append(" (");
-
 
28862
        }
28846
        sb.append(this.event);
28863
        sb.append(this.event);
-
 
28864
        if (event_name != null) {
-
 
28865
          sb.append(")");
-
 
28866
        }
28847
      }
28867
      }
28848
      first = false;
28868
      first = false;
28849
      if (!first) sb.append(", ");
28869
      if (!first) sb.append(", ");
28850
      sb.append("url:");
28870
      sb.append("url:");
28851
      if (this.url == null) {
28871
      if (this.url == null) {