LINE-KickBot1/curve-thrift/ChannelApplicationProvidedService.js
2019-07-13 09:41:46 +08:00

6669 lines
218 KiB
JavaScript

//
// Autogenerated by Thrift Compiler (0.10.0)
//
// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
//
"use strict";
var thrift = require('thrift');
var Thrift = thrift.Thrift;
var Q = thrift.Q;
var ttypes = require('./line_types');
//HELPER FUNCTIONS AND STRUCTURES
var ChannelApplicationProvidedService_activeBuddySubscriberCount_args = function(args) {
};
ChannelApplicationProvidedService_activeBuddySubscriberCount_args.prototype = {};
ChannelApplicationProvidedService_activeBuddySubscriberCount_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_activeBuddySubscriberCount_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_activeBuddySubscriberCount_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_activeBuddySubscriberCount_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_activeBuddySubscriberCount_result.prototype = {};
ChannelApplicationProvidedService_activeBuddySubscriberCount_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.I64) {
this.success = input.readI64();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_activeBuddySubscriberCount_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_activeBuddySubscriberCount_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.I64, 0);
output.writeI64(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_addOperationForChannel_args = function(args) {
this.opType = null;
this.param1 = null;
this.param2 = null;
this.param3 = null;
if (args) {
if (args.opType !== undefined && args.opType !== null) {
this.opType = args.opType;
}
if (args.param1 !== undefined && args.param1 !== null) {
this.param1 = args.param1;
}
if (args.param2 !== undefined && args.param2 !== null) {
this.param2 = args.param2;
}
if (args.param3 !== undefined && args.param3 !== null) {
this.param3 = args.param3;
}
}
};
ChannelApplicationProvidedService_addOperationForChannel_args.prototype = {};
ChannelApplicationProvidedService_addOperationForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.I32) {
this.opType = input.readI32();
} else {
input.skip(ftype);
}
break;
case 2:
if (ftype == Thrift.Type.STRING) {
this.param1 = input.readString();
} else {
input.skip(ftype);
}
break;
case 3:
if (ftype == Thrift.Type.STRING) {
this.param2 = input.readString();
} else {
input.skip(ftype);
}
break;
case 4:
if (ftype == Thrift.Type.STRING) {
this.param3 = input.readString();
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_addOperationForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_addOperationForChannel_args');
if (this.opType !== null && this.opType !== undefined) {
output.writeFieldBegin('opType', Thrift.Type.I32, 1);
output.writeI32(this.opType);
output.writeFieldEnd();
}
if (this.param1 !== null && this.param1 !== undefined) {
output.writeFieldBegin('param1', Thrift.Type.STRING, 2);
output.writeString(this.param1);
output.writeFieldEnd();
}
if (this.param2 !== null && this.param2 !== undefined) {
output.writeFieldBegin('param2', Thrift.Type.STRING, 3);
output.writeString(this.param2);
output.writeFieldEnd();
}
if (this.param3 !== null && this.param3 !== undefined) {
output.writeFieldBegin('param3', Thrift.Type.STRING, 4);
output.writeString(this.param3);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_addOperationForChannel_result = function(args) {
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_addOperationForChannel_result.prototype = {};
ChannelApplicationProvidedService_addOperationForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_addOperationForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_addOperationForChannel_result');
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_displayBuddySubscriberCount_args = function(args) {
};
ChannelApplicationProvidedService_displayBuddySubscriberCount_args.prototype = {};
ChannelApplicationProvidedService_displayBuddySubscriberCount_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_displayBuddySubscriberCount_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_displayBuddySubscriberCount_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_displayBuddySubscriberCount_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_displayBuddySubscriberCount_result.prototype = {};
ChannelApplicationProvidedService_displayBuddySubscriberCount_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.I64) {
this.success = input.readI64();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_displayBuddySubscriberCount_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_displayBuddySubscriberCount_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.I64, 0);
output.writeI64(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args = function(args) {
this.userid = null;
if (args) {
if (args.userid !== undefined && args.userid !== null) {
this.userid = args.userid;
}
}
};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args.prototype = {};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRING) {
this.userid = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args');
if (this.userid !== null && this.userid !== undefined) {
output.writeFieldBegin('userid', Thrift.Type.STRING, 2);
output.writeString(this.userid);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.Contact(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result.prototype = {};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.Contact();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getAllContactIdsForChannel_args = function(args) {
};
ChannelApplicationProvidedService_getAllContactIdsForChannel_args.prototype = {};
ChannelApplicationProvidedService_getAllContactIdsForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getAllContactIdsForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getAllContactIdsForChannel_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getAllContactIdsForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getAllContactIdsForChannel_result.prototype = {};
ChannelApplicationProvidedService_getAllContactIdsForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1320 = 0;
var _rtmp31324;
this.success = [];
var _etype1323 = 0;
_rtmp31324 = input.readListBegin();
_etype1323 = _rtmp31324.etype;
_size1320 = _rtmp31324.size;
for (var _i1325 = 0; _i1325 < _size1320; ++_i1325)
{
var elem1326 = null;
elem1326 = input.readString();
this.success.push(elem1326);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getAllContactIdsForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getAllContactIdsForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1327 in this.success)
{
if (this.success.hasOwnProperty(iter1327))
{
iter1327 = this.success[iter1327];
output.writeString(iter1327);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getCompactContacts_args = function(args) {
this.lastModifiedTimestamp = null;
if (args) {
if (args.lastModifiedTimestamp !== undefined && args.lastModifiedTimestamp !== null) {
this.lastModifiedTimestamp = args.lastModifiedTimestamp;
}
}
};
ChannelApplicationProvidedService_getCompactContacts_args.prototype = {};
ChannelApplicationProvidedService_getCompactContacts_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.I64) {
this.lastModifiedTimestamp = input.readI64();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getCompactContacts_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getCompactContacts_args');
if (this.lastModifiedTimestamp !== null && this.lastModifiedTimestamp !== undefined) {
output.writeFieldBegin('lastModifiedTimestamp', Thrift.Type.I64, 2);
output.writeI64(this.lastModifiedTimestamp);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getCompactContacts_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [ttypes.CompactContact]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getCompactContacts_result.prototype = {};
ChannelApplicationProvidedService_getCompactContacts_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1328 = 0;
var _rtmp31332;
this.success = [];
var _etype1331 = 0;
_rtmp31332 = input.readListBegin();
_etype1331 = _rtmp31332.etype;
_size1328 = _rtmp31332.size;
for (var _i1333 = 0; _i1333 < _size1328; ++_i1333)
{
var elem1334 = null;
elem1334 = new ttypes.CompactContact();
elem1334.read(input);
this.success.push(elem1334);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getCompactContacts_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getCompactContacts_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRUCT, this.success.length);
for (var iter1335 in this.success)
{
if (this.success.hasOwnProperty(iter1335))
{
iter1335 = this.success[iter1335];
iter1335.write(output);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getContactsForChannel_args = function(args) {
this.ids = null;
if (args) {
if (args.ids !== undefined && args.ids !== null) {
this.ids = Thrift.copyList(args.ids, [null]);
}
}
};
ChannelApplicationProvidedService_getContactsForChannel_args.prototype = {};
ChannelApplicationProvidedService_getContactsForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.LIST) {
var _size1336 = 0;
var _rtmp31340;
this.ids = [];
var _etype1339 = 0;
_rtmp31340 = input.readListBegin();
_etype1339 = _rtmp31340.etype;
_size1336 = _rtmp31340.size;
for (var _i1341 = 0; _i1341 < _size1336; ++_i1341)
{
var elem1342 = null;
elem1342 = input.readString();
this.ids.push(elem1342);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getContactsForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getContactsForChannel_args');
if (this.ids !== null && this.ids !== undefined) {
output.writeFieldBegin('ids', Thrift.Type.LIST, 2);
output.writeListBegin(Thrift.Type.STRING, this.ids.length);
for (var iter1343 in this.ids)
{
if (this.ids.hasOwnProperty(iter1343))
{
iter1343 = this.ids[iter1343];
output.writeString(iter1343);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getContactsForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [ttypes.Contact]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getContactsForChannel_result.prototype = {};
ChannelApplicationProvidedService_getContactsForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1344 = 0;
var _rtmp31348;
this.success = [];
var _etype1347 = 0;
_rtmp31348 = input.readListBegin();
_etype1347 = _rtmp31348.etype;
_size1344 = _rtmp31348.size;
for (var _i1349 = 0; _i1349 < _size1344; ++_i1349)
{
var elem1350 = null;
elem1350 = new ttypes.Contact();
elem1350.read(input);
this.success.push(elem1350);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getContactsForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getContactsForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRUCT, this.success.length);
for (var iter1351 in this.success)
{
if (this.success.hasOwnProperty(iter1351))
{
iter1351 = this.success[iter1351];
iter1351.write(output);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getDisplayName_args = function(args) {
this.mid = null;
if (args) {
if (args.mid !== undefined && args.mid !== null) {
this.mid = args.mid;
}
}
};
ChannelApplicationProvidedService_getDisplayName_args.prototype = {};
ChannelApplicationProvidedService_getDisplayName_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRING) {
this.mid = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getDisplayName_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getDisplayName_args');
if (this.mid !== null && this.mid !== undefined) {
output.writeFieldBegin('mid', Thrift.Type.STRING, 2);
output.writeString(this.mid);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getDisplayName_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getDisplayName_result.prototype = {};
ChannelApplicationProvidedService_getDisplayName_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRING) {
this.success = input.readString();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getDisplayName_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getDisplayName_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRING, 0);
output.writeString(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getFavoriteMidsForChannel_args = function(args) {
};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_args.prototype = {};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getFavoriteMidsForChannel_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getFavoriteMidsForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_result.prototype = {};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1352 = 0;
var _rtmp31356;
this.success = [];
var _etype1355 = 0;
_rtmp31356 = input.readListBegin();
_etype1355 = _rtmp31356.etype;
_size1352 = _rtmp31356.size;
for (var _i1357 = 0; _i1357 < _size1352; ++_i1357)
{
var elem1358 = null;
elem1358 = input.readString();
this.success.push(elem1358);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getFavoriteMidsForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getFavoriteMidsForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1359 in this.success)
{
if (this.success.hasOwnProperty(iter1359))
{
iter1359 = this.success[iter1359];
output.writeString(iter1359);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getFriendMids_args = function(args) {
};
ChannelApplicationProvidedService_getFriendMids_args.prototype = {};
ChannelApplicationProvidedService_getFriendMids_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getFriendMids_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getFriendMids_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getFriendMids_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getFriendMids_result.prototype = {};
ChannelApplicationProvidedService_getFriendMids_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1360 = 0;
var _rtmp31364;
this.success = [];
var _etype1363 = 0;
_rtmp31364 = input.readListBegin();
_etype1363 = _rtmp31364.etype;
_size1360 = _rtmp31364.size;
for (var _i1365 = 0; _i1365 < _size1360; ++_i1365)
{
var elem1366 = null;
elem1366 = input.readString();
this.success.push(elem1366);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getFriendMids_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getFriendMids_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1367 in this.success)
{
if (this.success.hasOwnProperty(iter1367))
{
iter1367 = this.success[iter1367];
output.writeString(iter1367);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getGroupMemberMids_args = function(args) {
this.groupId = null;
if (args) {
if (args.groupId !== undefined && args.groupId !== null) {
this.groupId = args.groupId;
}
}
};
ChannelApplicationProvidedService_getGroupMemberMids_args.prototype = {};
ChannelApplicationProvidedService_getGroupMemberMids_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
this.groupId = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getGroupMemberMids_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getGroupMemberMids_args');
if (this.groupId !== null && this.groupId !== undefined) {
output.writeFieldBegin('groupId', Thrift.Type.STRING, 1);
output.writeString(this.groupId);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getGroupMemberMids_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getGroupMemberMids_result.prototype = {};
ChannelApplicationProvidedService_getGroupMemberMids_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1368 = 0;
var _rtmp31372;
this.success = [];
var _etype1371 = 0;
_rtmp31372 = input.readListBegin();
_etype1371 = _rtmp31372.etype;
_size1368 = _rtmp31372.size;
for (var _i1373 = 0; _i1373 < _size1368; ++_i1373)
{
var elem1374 = null;
elem1374 = input.readString();
this.success.push(elem1374);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getGroupMemberMids_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getGroupMemberMids_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1375 in this.success)
{
if (this.success.hasOwnProperty(iter1375))
{
iter1375 = this.success[iter1375];
output.writeString(iter1375);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getGroupsForChannel_args = function(args) {
this.groupIds = null;
if (args) {
if (args.groupIds !== undefined && args.groupIds !== null) {
this.groupIds = Thrift.copyList(args.groupIds, [null]);
}
}
};
ChannelApplicationProvidedService_getGroupsForChannel_args.prototype = {};
ChannelApplicationProvidedService_getGroupsForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.LIST) {
var _size1376 = 0;
var _rtmp31380;
this.groupIds = [];
var _etype1379 = 0;
_rtmp31380 = input.readListBegin();
_etype1379 = _rtmp31380.etype;
_size1376 = _rtmp31380.size;
for (var _i1381 = 0; _i1381 < _size1376; ++_i1381)
{
var elem1382 = null;
elem1382 = input.readString();
this.groupIds.push(elem1382);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getGroupsForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getGroupsForChannel_args');
if (this.groupIds !== null && this.groupIds !== undefined) {
output.writeFieldBegin('groupIds', Thrift.Type.LIST, 1);
output.writeListBegin(Thrift.Type.STRING, this.groupIds.length);
for (var iter1383 in this.groupIds)
{
if (this.groupIds.hasOwnProperty(iter1383))
{
iter1383 = this.groupIds[iter1383];
output.writeString(iter1383);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getGroupsForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [ttypes.Group]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getGroupsForChannel_result.prototype = {};
ChannelApplicationProvidedService_getGroupsForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1384 = 0;
var _rtmp31388;
this.success = [];
var _etype1387 = 0;
_rtmp31388 = input.readListBegin();
_etype1387 = _rtmp31388.etype;
_size1384 = _rtmp31388.size;
for (var _i1389 = 0; _i1389 < _size1384; ++_i1389)
{
var elem1390 = null;
elem1390 = new ttypes.Group();
elem1390.read(input);
this.success.push(elem1390);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getGroupsForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getGroupsForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRUCT, this.success.length);
for (var iter1391 in this.success)
{
if (this.success.hasOwnProperty(iter1391))
{
iter1391 = this.success[iter1391];
iter1391.write(output);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getIdentityCredential_args = function(args) {
};
ChannelApplicationProvidedService_getIdentityCredential_args.prototype = {};
ChannelApplicationProvidedService_getIdentityCredential_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getIdentityCredential_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getIdentityCredential_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getIdentityCredential_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.IdentityCredential(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getIdentityCredential_result.prototype = {};
ChannelApplicationProvidedService_getIdentityCredential_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.IdentityCredential();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getIdentityCredential_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getIdentityCredential_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args = function(args) {
};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args.prototype = {};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result.prototype = {};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1392 = 0;
var _rtmp31396;
this.success = [];
var _etype1395 = 0;
_rtmp31396 = input.readListBegin();
_etype1395 = _rtmp31396.etype;
_size1392 = _rtmp31396.size;
for (var _i1397 = 0; _i1397 < _size1392; ++_i1397)
{
var elem1398 = null;
elem1398 = input.readString();
this.success.push(elem1398);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1399 in this.success)
{
if (this.success.hasOwnProperty(iter1399))
{
iter1399 = this.success[iter1399];
output.writeString(iter1399);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getMetaProfile_args = function(args) {
};
ChannelApplicationProvidedService_getMetaProfile_args.prototype = {};
ChannelApplicationProvidedService_getMetaProfile_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getMetaProfile_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getMetaProfile_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getMetaProfile_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.MetaProfile(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getMetaProfile_result.prototype = {};
ChannelApplicationProvidedService_getMetaProfile_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.MetaProfile();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getMetaProfile_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getMetaProfile_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getMid_args = function(args) {
};
ChannelApplicationProvidedService_getMid_args.prototype = {};
ChannelApplicationProvidedService_getMid_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getMid_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getMid_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getMid_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getMid_result.prototype = {};
ChannelApplicationProvidedService_getMid_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRING) {
this.success = input.readString();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getMid_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getMid_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRING, 0);
output.writeString(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getPrimaryClientForChannel_args = function(args) {
};
ChannelApplicationProvidedService_getPrimaryClientForChannel_args.prototype = {};
ChannelApplicationProvidedService_getPrimaryClientForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getPrimaryClientForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getPrimaryClientForChannel_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getPrimaryClientForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.SimpleChannelClient(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getPrimaryClientForChannel_result.prototype = {};
ChannelApplicationProvidedService_getPrimaryClientForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.SimpleChannelClient();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getPrimaryClientForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getPrimaryClientForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getProfileForChannel_args = function(args) {
};
ChannelApplicationProvidedService_getProfileForChannel_args.prototype = {};
ChannelApplicationProvidedService_getProfileForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getProfileForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getProfileForChannel_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getProfileForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.Profile(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getProfileForChannel_result.prototype = {};
ChannelApplicationProvidedService_getProfileForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.Profile();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getProfileForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getProfileForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getSimpleChannelContacts_args = function(args) {
this.ids = null;
if (args) {
if (args.ids !== undefined && args.ids !== null) {
this.ids = Thrift.copyList(args.ids, [null]);
}
}
};
ChannelApplicationProvidedService_getSimpleChannelContacts_args.prototype = {};
ChannelApplicationProvidedService_getSimpleChannelContacts_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.LIST) {
var _size1400 = 0;
var _rtmp31404;
this.ids = [];
var _etype1403 = 0;
_rtmp31404 = input.readListBegin();
_etype1403 = _rtmp31404.etype;
_size1400 = _rtmp31404.size;
for (var _i1405 = 0; _i1405 < _size1400; ++_i1405)
{
var elem1406 = null;
elem1406 = input.readString();
this.ids.push(elem1406);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getSimpleChannelContacts_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getSimpleChannelContacts_args');
if (this.ids !== null && this.ids !== undefined) {
output.writeFieldBegin('ids', Thrift.Type.LIST, 1);
output.writeListBegin(Thrift.Type.STRING, this.ids.length);
for (var iter1407 in this.ids)
{
if (this.ids.hasOwnProperty(iter1407))
{
iter1407 = this.ids[iter1407];
output.writeString(iter1407);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getSimpleChannelContacts_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [ttypes.SimpleChannelContact]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getSimpleChannelContacts_result.prototype = {};
ChannelApplicationProvidedService_getSimpleChannelContacts_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1408 = 0;
var _rtmp31412;
this.success = [];
var _etype1411 = 0;
_rtmp31412 = input.readListBegin();
_etype1411 = _rtmp31412.etype;
_size1408 = _rtmp31412.size;
for (var _i1413 = 0; _i1413 < _size1408; ++_i1413)
{
var elem1414 = null;
elem1414 = new ttypes.SimpleChannelContact();
elem1414.read(input);
this.success.push(elem1414);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getSimpleChannelContacts_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getSimpleChannelContacts_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRUCT, this.success.length);
for (var iter1415 in this.success)
{
if (this.success.hasOwnProperty(iter1415))
{
iter1415 = this.success[iter1415];
iter1415.write(output);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserCountryForBilling_args = function(args) {
this.country = null;
this.remoteIp = null;
if (args) {
if (args.country !== undefined && args.country !== null) {
this.country = args.country;
}
if (args.remoteIp !== undefined && args.remoteIp !== null) {
this.remoteIp = args.remoteIp;
}
}
};
ChannelApplicationProvidedService_getUserCountryForBilling_args.prototype = {};
ChannelApplicationProvidedService_getUserCountryForBilling_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRING) {
this.country = input.readString();
} else {
input.skip(ftype);
}
break;
case 3:
if (ftype == Thrift.Type.STRING) {
this.remoteIp = input.readString();
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserCountryForBilling_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserCountryForBilling_args');
if (this.country !== null && this.country !== undefined) {
output.writeFieldBegin('country', Thrift.Type.STRING, 2);
output.writeString(this.country);
output.writeFieldEnd();
}
if (this.remoteIp !== null && this.remoteIp !== undefined) {
output.writeFieldBegin('remoteIp', Thrift.Type.STRING, 3);
output.writeString(this.remoteIp);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserCountryForBilling_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getUserCountryForBilling_result.prototype = {};
ChannelApplicationProvidedService_getUserCountryForBilling_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRING) {
this.success = input.readString();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserCountryForBilling_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserCountryForBilling_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRING, 0);
output.writeString(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserCreateTime_args = function(args) {
};
ChannelApplicationProvidedService_getUserCreateTime_args.prototype = {};
ChannelApplicationProvidedService_getUserCreateTime_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserCreateTime_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserCreateTime_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserCreateTime_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getUserCreateTime_result.prototype = {};
ChannelApplicationProvidedService_getUserCreateTime_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.I64) {
this.success = input.readI64();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserCreateTime_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserCreateTime_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.I64, 0);
output.writeI64(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserIdentities_args = function(args) {
};
ChannelApplicationProvidedService_getUserIdentities_args.prototype = {};
ChannelApplicationProvidedService_getUserIdentities_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserIdentities_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserIdentities_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserIdentities_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyMap(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getUserIdentities_result.prototype = {};
ChannelApplicationProvidedService_getUserIdentities_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.MAP) {
var _size1416 = 0;
var _rtmp31420;
this.success = {};
var _ktype1417 = 0;
var _vtype1418 = 0;
_rtmp31420 = input.readMapBegin();
_ktype1417 = _rtmp31420.ktype;
_vtype1418 = _rtmp31420.vtype;
_size1416 = _rtmp31420.size;
for (var _i1421 = 0; _i1421 < _size1416; ++_i1421)
{
var key1422 = null;
var val1423 = null;
key1422 = input.readI32();
val1423 = input.readString();
this.success[key1422] = val1423;
}
input.readMapEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserIdentities_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserIdentities_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.MAP, 0);
output.writeMapBegin(Thrift.Type.I32, Thrift.Type.STRING, Thrift.objectLength(this.success));
for (var kiter1424 in this.success)
{
if (this.success.hasOwnProperty(kiter1424))
{
var viter1425 = this.success[kiter1424];
output.writeI32(kiter1424);
output.writeString(viter1425);
}
}
output.writeMapEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserLanguage_args = function(args) {
};
ChannelApplicationProvidedService_getUserLanguage_args.prototype = {};
ChannelApplicationProvidedService_getUserLanguage_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserLanguage_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserLanguage_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserLanguage_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getUserLanguage_result.prototype = {};
ChannelApplicationProvidedService_getUserLanguage_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRING) {
this.success = input.readString();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserLanguage_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserLanguage_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRING, 0);
output.writeString(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args = function(args) {
};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args.prototype = {};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
input.skip(ftype);
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args');
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = Thrift.copyList(args.success, [null]);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result.prototype = {};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.LIST) {
var _size1426 = 0;
var _rtmp31430;
this.success = [];
var _etype1429 = 0;
_rtmp31430 = input.readListBegin();
_etype1429 = _rtmp31430.etype;
_size1426 = _rtmp31430.size;
for (var _i1431 = 0; _i1431 < _size1426; ++_i1431)
{
var elem1432 = null;
elem1432 = input.readString();
this.success.push(elem1432);
}
input.readListEnd();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.LIST, 0);
output.writeListBegin(Thrift.Type.STRING, this.success.length);
for (var iter1433 in this.success)
{
if (this.success.hasOwnProperty(iter1433))
{
iter1433 = this.success[iter1433];
output.writeString(iter1433);
}
}
output.writeListEnd();
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_isGroupMember_args = function(args) {
this.groupId = null;
if (args) {
if (args.groupId !== undefined && args.groupId !== null) {
this.groupId = args.groupId;
}
}
};
ChannelApplicationProvidedService_isGroupMember_args.prototype = {};
ChannelApplicationProvidedService_isGroupMember_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
this.groupId = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_isGroupMember_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_isGroupMember_args');
if (this.groupId !== null && this.groupId !== undefined) {
output.writeFieldBegin('groupId', Thrift.Type.STRING, 1);
output.writeString(this.groupId);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_isGroupMember_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_isGroupMember_result.prototype = {};
ChannelApplicationProvidedService_isGroupMember_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.BOOL) {
this.success = input.readBool();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_isGroupMember_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_isGroupMember_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.BOOL, 0);
output.writeBool(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_isInContact_args = function(args) {
this.mid = null;
if (args) {
if (args.mid !== undefined && args.mid !== null) {
this.mid = args.mid;
}
}
};
ChannelApplicationProvidedService_isInContact_args.prototype = {};
ChannelApplicationProvidedService_isInContact_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRING) {
this.mid = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_isInContact_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_isInContact_args');
if (this.mid !== null && this.mid !== undefined) {
output.writeFieldBegin('mid', Thrift.Type.STRING, 2);
output.writeString(this.mid);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_isInContact_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_isInContact_result.prototype = {};
ChannelApplicationProvidedService_isInContact_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.BOOL) {
this.success = input.readBool();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_isInContact_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_isInContact_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.BOOL, 0);
output.writeBool(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_registerChannelCP_args = function(args) {
this.cpId = null;
this.registerPassword = null;
if (args) {
if (args.cpId !== undefined && args.cpId !== null) {
this.cpId = args.cpId;
}
if (args.registerPassword !== undefined && args.registerPassword !== null) {
this.registerPassword = args.registerPassword;
}
}
};
ChannelApplicationProvidedService_registerChannelCP_args.prototype = {};
ChannelApplicationProvidedService_registerChannelCP_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRING) {
this.cpId = input.readString();
} else {
input.skip(ftype);
}
break;
case 3:
if (ftype == Thrift.Type.STRING) {
this.registerPassword = input.readString();
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_registerChannelCP_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_registerChannelCP_args');
if (this.cpId !== null && this.cpId !== undefined) {
output.writeFieldBegin('cpId', Thrift.Type.STRING, 2);
output.writeString(this.cpId);
output.writeFieldEnd();
}
if (this.registerPassword !== null && this.registerPassword !== undefined) {
output.writeFieldBegin('registerPassword', Thrift.Type.STRING, 3);
output.writeString(this.registerPassword);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_registerChannelCP_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = args.success;
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_registerChannelCP_result.prototype = {};
ChannelApplicationProvidedService_registerChannelCP_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRING) {
this.success = input.readString();
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_registerChannelCP_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_registerChannelCP_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRING, 0);
output.writeString(this.success);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_removeNotificationStatus_args = function(args) {
this.notificationStatus = null;
if (args) {
if (args.notificationStatus !== undefined && args.notificationStatus !== null) {
this.notificationStatus = args.notificationStatus;
}
}
};
ChannelApplicationProvidedService_removeNotificationStatus_args.prototype = {};
ChannelApplicationProvidedService_removeNotificationStatus_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.I32) {
this.notificationStatus = input.readI32();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_removeNotificationStatus_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_removeNotificationStatus_args');
if (this.notificationStatus !== null && this.notificationStatus !== undefined) {
output.writeFieldBegin('notificationStatus', Thrift.Type.I32, 2);
output.writeI32(this.notificationStatus);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_removeNotificationStatus_result = function(args) {
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_removeNotificationStatus_result.prototype = {};
ChannelApplicationProvidedService_removeNotificationStatus_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_removeNotificationStatus_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_removeNotificationStatus_result');
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_sendMessageForChannel_args = function(args) {
this.message = null;
if (args) {
if (args.message !== undefined && args.message !== null) {
this.message = new ttypes.Message(args.message);
}
}
};
ChannelApplicationProvidedService_sendMessageForChannel_args.prototype = {};
ChannelApplicationProvidedService_sendMessageForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.STRUCT) {
this.message = new ttypes.Message();
this.message.read(input);
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_sendMessageForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_sendMessageForChannel_args');
if (this.message !== null && this.message !== undefined) {
output.writeFieldBegin('message', Thrift.Type.STRUCT, 2);
this.message.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_sendMessageForChannel_result = function(args) {
this.success = null;
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.success !== undefined && args.success !== null) {
this.success = new ttypes.Message(args.success);
}
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_sendMessageForChannel_result.prototype = {};
ChannelApplicationProvidedService_sendMessageForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 0:
if (ftype == Thrift.Type.STRUCT) {
this.success = new ttypes.Message();
this.success.read(input);
} else {
input.skip(ftype);
}
break;
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_sendMessageForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_sendMessageForChannel_result');
if (this.success !== null && this.success !== undefined) {
output.writeFieldBegin('success', Thrift.Type.STRUCT, 0);
this.success.write(output);
output.writeFieldEnd();
}
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_sendPinCodeOperation_args = function(args) {
this.verifier = null;
if (args) {
if (args.verifier !== undefined && args.verifier !== null) {
this.verifier = args.verifier;
}
}
};
ChannelApplicationProvidedService_sendPinCodeOperation_args.prototype = {};
ChannelApplicationProvidedService_sendPinCodeOperation_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRING) {
this.verifier = input.readString();
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_sendPinCodeOperation_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_sendPinCodeOperation_args');
if (this.verifier !== null && this.verifier !== undefined) {
output.writeFieldBegin('verifier', Thrift.Type.STRING, 1);
output.writeString(this.verifier);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_sendPinCodeOperation_result = function(args) {
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_sendPinCodeOperation_result.prototype = {};
ChannelApplicationProvidedService_sendPinCodeOperation_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_sendPinCodeOperation_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_sendPinCodeOperation_result');
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_updateProfileAttributeForChannel_args = function(args) {
this.profileAttribute = null;
this.value = null;
if (args) {
if (args.profileAttribute !== undefined && args.profileAttribute !== null) {
this.profileAttribute = args.profileAttribute;
}
if (args.value !== undefined && args.value !== null) {
this.value = args.value;
}
}
};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_args.prototype = {};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_args.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 2:
if (ftype == Thrift.Type.I32) {
this.profileAttribute = input.readI32();
} else {
input.skip(ftype);
}
break;
case 3:
if (ftype == Thrift.Type.STRING) {
this.value = input.readString();
} else {
input.skip(ftype);
}
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_args.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_updateProfileAttributeForChannel_args');
if (this.profileAttribute !== null && this.profileAttribute !== undefined) {
output.writeFieldBegin('profileAttribute', Thrift.Type.I32, 2);
output.writeI32(this.profileAttribute);
output.writeFieldEnd();
}
if (this.value !== null && this.value !== undefined) {
output.writeFieldBegin('value', Thrift.Type.STRING, 3);
output.writeString(this.value);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedService_updateProfileAttributeForChannel_result = function(args) {
this.e = null;
if (args instanceof ttypes.TalkException) {
this.e = args;
return;
}
if (args) {
if (args.e !== undefined && args.e !== null) {
this.e = args.e;
}
}
};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_result.prototype = {};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_result.prototype.read = function(input) {
input.readStructBegin();
while (true)
{
var ret = input.readFieldBegin();
var fname = ret.fname;
var ftype = ret.ftype;
var fid = ret.fid;
if (ftype == Thrift.Type.STOP) {
break;
}
switch (fid)
{
case 1:
if (ftype == Thrift.Type.STRUCT) {
this.e = new ttypes.TalkException();
this.e.read(input);
} else {
input.skip(ftype);
}
break;
case 0:
input.skip(ftype);
break;
default:
input.skip(ftype);
}
input.readFieldEnd();
}
input.readStructEnd();
return;
};
ChannelApplicationProvidedService_updateProfileAttributeForChannel_result.prototype.write = function(output) {
output.writeStructBegin('ChannelApplicationProvidedService_updateProfileAttributeForChannel_result');
if (this.e !== null && this.e !== undefined) {
output.writeFieldBegin('e', Thrift.Type.STRUCT, 1);
this.e.write(output);
output.writeFieldEnd();
}
output.writeFieldStop();
output.writeStructEnd();
return;
};
var ChannelApplicationProvidedServiceClient = exports.Client = function(output, pClass) {
this.output = output;
this.pClass = pClass;
this._seqid = 0;
this._reqs = {};
};
ChannelApplicationProvidedServiceClient.prototype = {};
ChannelApplicationProvidedServiceClient.prototype.seqid = function() { return this._seqid; };
ChannelApplicationProvidedServiceClient.prototype.new_seqid = function() { return this._seqid += 1; };
ChannelApplicationProvidedServiceClient.prototype.activeBuddySubscriberCount = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_activeBuddySubscriberCount();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_activeBuddySubscriberCount();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_activeBuddySubscriberCount = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('activeBuddySubscriberCount', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_activeBuddySubscriberCount_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_activeBuddySubscriberCount = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_activeBuddySubscriberCount_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('activeBuddySubscriberCount failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.addOperationForChannel = function(opType, param1, param2, param3, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_addOperationForChannel(opType, param1, param2, param3);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_addOperationForChannel(opType, param1, param2, param3);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_addOperationForChannel = function(opType, param1, param2, param3) {
var output = new this.pClass(this.output);
output.writeMessageBegin('addOperationForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_addOperationForChannel_args();
args.opType = opType;
args.param1 = param1;
args.param2 = param2;
args.param3 = param3;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_addOperationForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_addOperationForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
callback(null);
};
ChannelApplicationProvidedServiceClient.prototype.displayBuddySubscriberCount = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_displayBuddySubscriberCount();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_displayBuddySubscriberCount();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_displayBuddySubscriberCount = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('displayBuddySubscriberCount', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_displayBuddySubscriberCount_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_displayBuddySubscriberCount = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_displayBuddySubscriberCount_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('displayBuddySubscriberCount failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.findContactByUseridWithoutAbuseBlockForChannel = function(userid, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_findContactByUseridWithoutAbuseBlockForChannel(userid);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_findContactByUseridWithoutAbuseBlockForChannel(userid);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_findContactByUseridWithoutAbuseBlockForChannel = function(userid) {
var output = new this.pClass(this.output);
output.writeMessageBegin('findContactByUseridWithoutAbuseBlockForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args();
args.userid = userid;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_findContactByUseridWithoutAbuseBlockForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('findContactByUseridWithoutAbuseBlockForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getAllContactIdsForChannel = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getAllContactIdsForChannel();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getAllContactIdsForChannel();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getAllContactIdsForChannel = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getAllContactIdsForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getAllContactIdsForChannel_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getAllContactIdsForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getAllContactIdsForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getAllContactIdsForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getCompactContacts = function(lastModifiedTimestamp, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getCompactContacts(lastModifiedTimestamp);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getCompactContacts(lastModifiedTimestamp);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getCompactContacts = function(lastModifiedTimestamp) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getCompactContacts', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getCompactContacts_args();
args.lastModifiedTimestamp = lastModifiedTimestamp;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getCompactContacts = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getCompactContacts_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getCompactContacts failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getContactsForChannel = function(ids, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getContactsForChannel(ids);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getContactsForChannel(ids);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getContactsForChannel = function(ids) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getContactsForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getContactsForChannel_args();
args.ids = ids;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getContactsForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getContactsForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getContactsForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getDisplayName = function(mid, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getDisplayName(mid);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getDisplayName(mid);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getDisplayName = function(mid) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getDisplayName', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getDisplayName_args();
args.mid = mid;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getDisplayName = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getDisplayName_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getDisplayName failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getFavoriteMidsForChannel = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getFavoriteMidsForChannel();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getFavoriteMidsForChannel();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getFavoriteMidsForChannel = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getFavoriteMidsForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getFavoriteMidsForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getFavoriteMidsForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getFriendMids = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getFriendMids();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getFriendMids();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getFriendMids = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getFriendMids', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getFriendMids_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getFriendMids = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getFriendMids_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getFriendMids failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getGroupMemberMids = function(groupId, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getGroupMemberMids(groupId);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getGroupMemberMids(groupId);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getGroupMemberMids = function(groupId) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getGroupMemberMids', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getGroupMemberMids_args();
args.groupId = groupId;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getGroupMemberMids = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getGroupMemberMids_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getGroupMemberMids failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getGroupsForChannel = function(groupIds, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getGroupsForChannel(groupIds);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getGroupsForChannel(groupIds);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getGroupsForChannel = function(groupIds) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getGroupsForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getGroupsForChannel_args();
args.groupIds = groupIds;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getGroupsForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getGroupsForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getGroupsForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getIdentityCredential = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getIdentityCredential();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getIdentityCredential();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getIdentityCredential = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getIdentityCredential', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getIdentityCredential_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getIdentityCredential = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getIdentityCredential_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getIdentityCredential failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getJoinedGroupIdsForChannel = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getJoinedGroupIdsForChannel();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getJoinedGroupIdsForChannel();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getJoinedGroupIdsForChannel = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getJoinedGroupIdsForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getJoinedGroupIdsForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getJoinedGroupIdsForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getMetaProfile = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getMetaProfile();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getMetaProfile();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getMetaProfile = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getMetaProfile', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getMetaProfile_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getMetaProfile = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getMetaProfile_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getMetaProfile failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getMid = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getMid();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getMid();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getMid = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getMid', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getMid_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getMid = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getMid_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getMid failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getPrimaryClientForChannel = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getPrimaryClientForChannel();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getPrimaryClientForChannel();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getPrimaryClientForChannel = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getPrimaryClientForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getPrimaryClientForChannel_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getPrimaryClientForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getPrimaryClientForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getPrimaryClientForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getProfileForChannel = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getProfileForChannel();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getProfileForChannel();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getProfileForChannel = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getProfileForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getProfileForChannel_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getProfileForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getProfileForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getProfileForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getSimpleChannelContacts = function(ids, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getSimpleChannelContacts(ids);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getSimpleChannelContacts(ids);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getSimpleChannelContacts = function(ids) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getSimpleChannelContacts', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getSimpleChannelContacts_args();
args.ids = ids;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getSimpleChannelContacts = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getSimpleChannelContacts_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getSimpleChannelContacts failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getUserCountryForBilling = function(country, remoteIp, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getUserCountryForBilling(country, remoteIp);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getUserCountryForBilling(country, remoteIp);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getUserCountryForBilling = function(country, remoteIp) {
var output = new this.pClass(this.output);
output.writeMessageBegin('getUserCountryForBilling', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getUserCountryForBilling_args();
args.country = country;
args.remoteIp = remoteIp;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getUserCountryForBilling = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getUserCountryForBilling_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getUserCountryForBilling failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getUserCreateTime = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getUserCreateTime();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getUserCreateTime();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getUserCreateTime = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getUserCreateTime', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getUserCreateTime_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getUserCreateTime = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getUserCreateTime_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getUserCreateTime failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getUserIdentities = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getUserIdentities();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getUserIdentities();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getUserIdentities = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getUserIdentities', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getUserIdentities_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getUserIdentities = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getUserIdentities_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getUserIdentities failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getUserLanguage = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getUserLanguage();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getUserLanguage();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getUserLanguage = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getUserLanguage', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getUserLanguage_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getUserLanguage = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getUserLanguage_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getUserLanguage failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.getUserMidsWhoAddedMe = function(callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_getUserMidsWhoAddedMe();
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_getUserMidsWhoAddedMe();
}
};
ChannelApplicationProvidedServiceClient.prototype.send_getUserMidsWhoAddedMe = function() {
var output = new this.pClass(this.output);
output.writeMessageBegin('getUserMidsWhoAddedMe', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args();
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_getUserMidsWhoAddedMe = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('getUserMidsWhoAddedMe failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.isGroupMember = function(groupId, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_isGroupMember(groupId);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_isGroupMember(groupId);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_isGroupMember = function(groupId) {
var output = new this.pClass(this.output);
output.writeMessageBegin('isGroupMember', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_isGroupMember_args();
args.groupId = groupId;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_isGroupMember = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_isGroupMember_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('isGroupMember failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.isInContact = function(mid, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_isInContact(mid);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_isInContact(mid);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_isInContact = function(mid) {
var output = new this.pClass(this.output);
output.writeMessageBegin('isInContact', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_isInContact_args();
args.mid = mid;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_isInContact = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_isInContact_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('isInContact failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.registerChannelCP = function(cpId, registerPassword, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_registerChannelCP(cpId, registerPassword);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_registerChannelCP(cpId, registerPassword);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_registerChannelCP = function(cpId, registerPassword) {
var output = new this.pClass(this.output);
output.writeMessageBegin('registerChannelCP', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_registerChannelCP_args();
args.cpId = cpId;
args.registerPassword = registerPassword;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_registerChannelCP = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_registerChannelCP_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('registerChannelCP failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.removeNotificationStatus = function(notificationStatus, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_removeNotificationStatus(notificationStatus);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_removeNotificationStatus(notificationStatus);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_removeNotificationStatus = function(notificationStatus) {
var output = new this.pClass(this.output);
output.writeMessageBegin('removeNotificationStatus', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_removeNotificationStatus_args();
args.notificationStatus = notificationStatus;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_removeNotificationStatus = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_removeNotificationStatus_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
callback(null);
};
ChannelApplicationProvidedServiceClient.prototype.sendMessageForChannel = function(message, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_sendMessageForChannel(message);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_sendMessageForChannel(message);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_sendMessageForChannel = function(message) {
var output = new this.pClass(this.output);
output.writeMessageBegin('sendMessageForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_sendMessageForChannel_args();
args.message = message;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_sendMessageForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_sendMessageForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
if (null !== result.success) {
return callback(null, result.success);
}
return callback('sendMessageForChannel failed: unknown result');
};
ChannelApplicationProvidedServiceClient.prototype.sendPinCodeOperation = function(verifier, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_sendPinCodeOperation(verifier);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_sendPinCodeOperation(verifier);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_sendPinCodeOperation = function(verifier) {
var output = new this.pClass(this.output);
output.writeMessageBegin('sendPinCodeOperation', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_sendPinCodeOperation_args();
args.verifier = verifier;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_sendPinCodeOperation = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_sendPinCodeOperation_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
callback(null);
};
ChannelApplicationProvidedServiceClient.prototype.updateProfileAttributeForChannel = function(profileAttribute, value, callback) {
this._seqid = this.new_seqid();
if (callback === undefined) {
var _defer = Q.defer();
this._reqs[this.seqid()] = function(error, result) {
if (error) {
_defer.reject(error);
} else {
_defer.resolve(result);
}
};
this.send_updateProfileAttributeForChannel(profileAttribute, value);
return _defer.promise;
} else {
this._reqs[this.seqid()] = callback;
this.send_updateProfileAttributeForChannel(profileAttribute, value);
}
};
ChannelApplicationProvidedServiceClient.prototype.send_updateProfileAttributeForChannel = function(profileAttribute, value) {
var output = new this.pClass(this.output);
output.writeMessageBegin('updateProfileAttributeForChannel', Thrift.MessageType.CALL, this.seqid());
var args = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_args();
args.profileAttribute = profileAttribute;
args.value = value;
args.write(output);
output.writeMessageEnd();
return this.output.flush();
};
ChannelApplicationProvidedServiceClient.prototype.recv_updateProfileAttributeForChannel = function(input,mtype,rseqid) {
var callback = this._reqs[rseqid] || function() {};
delete this._reqs[rseqid];
if (mtype == Thrift.MessageType.EXCEPTION) {
var x = new Thrift.TApplicationException();
x.read(input);
input.readMessageEnd();
return callback(x);
}
var result = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_result();
result.read(input);
input.readMessageEnd();
if (null !== result.e) {
return callback(result.e);
}
callback(null);
};
var ChannelApplicationProvidedServiceProcessor = exports.Processor = function(handler) {
this._handler = handler;
}
;
ChannelApplicationProvidedServiceProcessor.prototype.process = function(input, output) {
var r = input.readMessageBegin();
if (this['process_' + r.fname]) {
return this['process_' + r.fname].call(this, r.rseqid, input, output);
} else {
input.skip(Thrift.Type.STRUCT);
input.readMessageEnd();
var x = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN_METHOD, 'Unknown function ' + r.fname);
output.writeMessageBegin(r.fname, Thrift.MessageType.EXCEPTION, r.rseqid);
x.write(output);
output.writeMessageEnd();
output.flush();
}
}
;
ChannelApplicationProvidedServiceProcessor.prototype.process_activeBuddySubscriberCount = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_activeBuddySubscriberCount_args();
args.read(input);
input.readMessageEnd();
if (this._handler.activeBuddySubscriberCount.length === 0) {
Q.fcall(this._handler.activeBuddySubscriberCount)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_activeBuddySubscriberCount_result({success: result});
output.writeMessageBegin("activeBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_activeBuddySubscriberCount_result(err);
output.writeMessageBegin("activeBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("activeBuddySubscriberCount", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.activeBuddySubscriberCount(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_activeBuddySubscriberCount_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("activeBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("activeBuddySubscriberCount", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_addOperationForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_addOperationForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.addOperationForChannel.length === 4) {
Q.fcall(this._handler.addOperationForChannel, args.opType, args.param1, args.param2, args.param3)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_addOperationForChannel_result({success: result});
output.writeMessageBegin("addOperationForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_addOperationForChannel_result(err);
output.writeMessageBegin("addOperationForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("addOperationForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.addOperationForChannel(args.opType, args.param1, args.param2, args.param3, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_addOperationForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("addOperationForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("addOperationForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_displayBuddySubscriberCount = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_displayBuddySubscriberCount_args();
args.read(input);
input.readMessageEnd();
if (this._handler.displayBuddySubscriberCount.length === 0) {
Q.fcall(this._handler.displayBuddySubscriberCount)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_displayBuddySubscriberCount_result({success: result});
output.writeMessageBegin("displayBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_displayBuddySubscriberCount_result(err);
output.writeMessageBegin("displayBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("displayBuddySubscriberCount", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.displayBuddySubscriberCount(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_displayBuddySubscriberCount_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("displayBuddySubscriberCount", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("displayBuddySubscriberCount", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_findContactByUseridWithoutAbuseBlockForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.findContactByUseridWithoutAbuseBlockForChannel.length === 1) {
Q.fcall(this._handler.findContactByUseridWithoutAbuseBlockForChannel, args.userid)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result({success: result});
output.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result(err);
output.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.findContactByUseridWithoutAbuseBlockForChannel(args.userid, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_findContactByUseridWithoutAbuseBlockForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("findContactByUseridWithoutAbuseBlockForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getAllContactIdsForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getAllContactIdsForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getAllContactIdsForChannel.length === 0) {
Q.fcall(this._handler.getAllContactIdsForChannel)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getAllContactIdsForChannel_result({success: result});
output.writeMessageBegin("getAllContactIdsForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getAllContactIdsForChannel_result(err);
output.writeMessageBegin("getAllContactIdsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getAllContactIdsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getAllContactIdsForChannel(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getAllContactIdsForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getAllContactIdsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getAllContactIdsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getCompactContacts = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getCompactContacts_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getCompactContacts.length === 1) {
Q.fcall(this._handler.getCompactContacts, args.lastModifiedTimestamp)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getCompactContacts_result({success: result});
output.writeMessageBegin("getCompactContacts", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getCompactContacts_result(err);
output.writeMessageBegin("getCompactContacts", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getCompactContacts", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getCompactContacts(args.lastModifiedTimestamp, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getCompactContacts_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getCompactContacts", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getCompactContacts", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getContactsForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getContactsForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getContactsForChannel.length === 1) {
Q.fcall(this._handler.getContactsForChannel, args.ids)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getContactsForChannel_result({success: result});
output.writeMessageBegin("getContactsForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getContactsForChannel_result(err);
output.writeMessageBegin("getContactsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getContactsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getContactsForChannel(args.ids, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getContactsForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getContactsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getContactsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getDisplayName = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getDisplayName_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getDisplayName.length === 1) {
Q.fcall(this._handler.getDisplayName, args.mid)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getDisplayName_result({success: result});
output.writeMessageBegin("getDisplayName", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getDisplayName_result(err);
output.writeMessageBegin("getDisplayName", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getDisplayName", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getDisplayName(args.mid, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getDisplayName_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getDisplayName", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getDisplayName", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getFavoriteMidsForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getFavoriteMidsForChannel.length === 0) {
Q.fcall(this._handler.getFavoriteMidsForChannel)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_result({success: result});
output.writeMessageBegin("getFavoriteMidsForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_result(err);
output.writeMessageBegin("getFavoriteMidsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getFavoriteMidsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getFavoriteMidsForChannel(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getFavoriteMidsForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getFavoriteMidsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getFavoriteMidsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getFriendMids = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getFriendMids_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getFriendMids.length === 0) {
Q.fcall(this._handler.getFriendMids)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getFriendMids_result({success: result});
output.writeMessageBegin("getFriendMids", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getFriendMids_result(err);
output.writeMessageBegin("getFriendMids", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getFriendMids", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getFriendMids(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getFriendMids_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getFriendMids", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getFriendMids", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getGroupMemberMids = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getGroupMemberMids_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getGroupMemberMids.length === 1) {
Q.fcall(this._handler.getGroupMemberMids, args.groupId)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getGroupMemberMids_result({success: result});
output.writeMessageBegin("getGroupMemberMids", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getGroupMemberMids_result(err);
output.writeMessageBegin("getGroupMemberMids", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getGroupMemberMids", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getGroupMemberMids(args.groupId, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getGroupMemberMids_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getGroupMemberMids", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getGroupMemberMids", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getGroupsForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getGroupsForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getGroupsForChannel.length === 1) {
Q.fcall(this._handler.getGroupsForChannel, args.groupIds)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getGroupsForChannel_result({success: result});
output.writeMessageBegin("getGroupsForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getGroupsForChannel_result(err);
output.writeMessageBegin("getGroupsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getGroupsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getGroupsForChannel(args.groupIds, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getGroupsForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getGroupsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getGroupsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getIdentityCredential = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getIdentityCredential_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getIdentityCredential.length === 0) {
Q.fcall(this._handler.getIdentityCredential)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getIdentityCredential_result({success: result});
output.writeMessageBegin("getIdentityCredential", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getIdentityCredential_result(err);
output.writeMessageBegin("getIdentityCredential", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getIdentityCredential", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getIdentityCredential(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getIdentityCredential_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getIdentityCredential", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getIdentityCredential", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getJoinedGroupIdsForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getJoinedGroupIdsForChannel.length === 0) {
Q.fcall(this._handler.getJoinedGroupIdsForChannel)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result({success: result});
output.writeMessageBegin("getJoinedGroupIdsForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result(err);
output.writeMessageBegin("getJoinedGroupIdsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getJoinedGroupIdsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getJoinedGroupIdsForChannel(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getJoinedGroupIdsForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getJoinedGroupIdsForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getJoinedGroupIdsForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getMetaProfile = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getMetaProfile_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getMetaProfile.length === 0) {
Q.fcall(this._handler.getMetaProfile)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getMetaProfile_result({success: result});
output.writeMessageBegin("getMetaProfile", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getMetaProfile_result(err);
output.writeMessageBegin("getMetaProfile", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getMetaProfile", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getMetaProfile(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getMetaProfile_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getMetaProfile", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getMetaProfile", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getMid = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getMid_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getMid.length === 0) {
Q.fcall(this._handler.getMid)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getMid_result({success: result});
output.writeMessageBegin("getMid", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getMid_result(err);
output.writeMessageBegin("getMid", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getMid", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getMid(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getMid_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getMid", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getMid", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getPrimaryClientForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getPrimaryClientForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getPrimaryClientForChannel.length === 0) {
Q.fcall(this._handler.getPrimaryClientForChannel)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getPrimaryClientForChannel_result({success: result});
output.writeMessageBegin("getPrimaryClientForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getPrimaryClientForChannel_result(err);
output.writeMessageBegin("getPrimaryClientForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getPrimaryClientForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getPrimaryClientForChannel(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getPrimaryClientForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getPrimaryClientForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getPrimaryClientForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getProfileForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getProfileForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getProfileForChannel.length === 0) {
Q.fcall(this._handler.getProfileForChannel)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getProfileForChannel_result({success: result});
output.writeMessageBegin("getProfileForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getProfileForChannel_result(err);
output.writeMessageBegin("getProfileForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getProfileForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getProfileForChannel(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getProfileForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getProfileForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getProfileForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getSimpleChannelContacts = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getSimpleChannelContacts_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getSimpleChannelContacts.length === 1) {
Q.fcall(this._handler.getSimpleChannelContacts, args.ids)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getSimpleChannelContacts_result({success: result});
output.writeMessageBegin("getSimpleChannelContacts", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getSimpleChannelContacts_result(err);
output.writeMessageBegin("getSimpleChannelContacts", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getSimpleChannelContacts", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getSimpleChannelContacts(args.ids, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getSimpleChannelContacts_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getSimpleChannelContacts", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getSimpleChannelContacts", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getUserCountryForBilling = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getUserCountryForBilling_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getUserCountryForBilling.length === 2) {
Q.fcall(this._handler.getUserCountryForBilling, args.country, args.remoteIp)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getUserCountryForBilling_result({success: result});
output.writeMessageBegin("getUserCountryForBilling", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getUserCountryForBilling_result(err);
output.writeMessageBegin("getUserCountryForBilling", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserCountryForBilling", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getUserCountryForBilling(args.country, args.remoteIp, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getUserCountryForBilling_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getUserCountryForBilling", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserCountryForBilling", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getUserCreateTime = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getUserCreateTime_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getUserCreateTime.length === 0) {
Q.fcall(this._handler.getUserCreateTime)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getUserCreateTime_result({success: result});
output.writeMessageBegin("getUserCreateTime", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getUserCreateTime_result(err);
output.writeMessageBegin("getUserCreateTime", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserCreateTime", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getUserCreateTime(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getUserCreateTime_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getUserCreateTime", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserCreateTime", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getUserIdentities = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getUserIdentities_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getUserIdentities.length === 0) {
Q.fcall(this._handler.getUserIdentities)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getUserIdentities_result({success: result});
output.writeMessageBegin("getUserIdentities", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getUserIdentities_result(err);
output.writeMessageBegin("getUserIdentities", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserIdentities", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getUserIdentities(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getUserIdentities_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getUserIdentities", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserIdentities", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getUserLanguage = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getUserLanguage_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getUserLanguage.length === 0) {
Q.fcall(this._handler.getUserLanguage)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getUserLanguage_result({success: result});
output.writeMessageBegin("getUserLanguage", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getUserLanguage_result(err);
output.writeMessageBegin("getUserLanguage", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserLanguage", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getUserLanguage(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getUserLanguage_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getUserLanguage", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserLanguage", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_getUserMidsWhoAddedMe = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_args();
args.read(input);
input.readMessageEnd();
if (this._handler.getUserMidsWhoAddedMe.length === 0) {
Q.fcall(this._handler.getUserMidsWhoAddedMe)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result({success: result});
output.writeMessageBegin("getUserMidsWhoAddedMe", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result(err);
output.writeMessageBegin("getUserMidsWhoAddedMe", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserMidsWhoAddedMe", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.getUserMidsWhoAddedMe(function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_getUserMidsWhoAddedMe_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("getUserMidsWhoAddedMe", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("getUserMidsWhoAddedMe", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_isGroupMember = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_isGroupMember_args();
args.read(input);
input.readMessageEnd();
if (this._handler.isGroupMember.length === 1) {
Q.fcall(this._handler.isGroupMember, args.groupId)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_isGroupMember_result({success: result});
output.writeMessageBegin("isGroupMember", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_isGroupMember_result(err);
output.writeMessageBegin("isGroupMember", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("isGroupMember", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.isGroupMember(args.groupId, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_isGroupMember_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("isGroupMember", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("isGroupMember", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_isInContact = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_isInContact_args();
args.read(input);
input.readMessageEnd();
if (this._handler.isInContact.length === 1) {
Q.fcall(this._handler.isInContact, args.mid)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_isInContact_result({success: result});
output.writeMessageBegin("isInContact", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_isInContact_result(err);
output.writeMessageBegin("isInContact", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("isInContact", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.isInContact(args.mid, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_isInContact_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("isInContact", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("isInContact", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_registerChannelCP = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_registerChannelCP_args();
args.read(input);
input.readMessageEnd();
if (this._handler.registerChannelCP.length === 2) {
Q.fcall(this._handler.registerChannelCP, args.cpId, args.registerPassword)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_registerChannelCP_result({success: result});
output.writeMessageBegin("registerChannelCP", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_registerChannelCP_result(err);
output.writeMessageBegin("registerChannelCP", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("registerChannelCP", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.registerChannelCP(args.cpId, args.registerPassword, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_registerChannelCP_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("registerChannelCP", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("registerChannelCP", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_removeNotificationStatus = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_removeNotificationStatus_args();
args.read(input);
input.readMessageEnd();
if (this._handler.removeNotificationStatus.length === 1) {
Q.fcall(this._handler.removeNotificationStatus, args.notificationStatus)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_removeNotificationStatus_result({success: result});
output.writeMessageBegin("removeNotificationStatus", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_removeNotificationStatus_result(err);
output.writeMessageBegin("removeNotificationStatus", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("removeNotificationStatus", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.removeNotificationStatus(args.notificationStatus, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_removeNotificationStatus_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("removeNotificationStatus", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("removeNotificationStatus", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_sendMessageForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_sendMessageForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.sendMessageForChannel.length === 1) {
Q.fcall(this._handler.sendMessageForChannel, args.message)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_sendMessageForChannel_result({success: result});
output.writeMessageBegin("sendMessageForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_sendMessageForChannel_result(err);
output.writeMessageBegin("sendMessageForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("sendMessageForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.sendMessageForChannel(args.message, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_sendMessageForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("sendMessageForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("sendMessageForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_sendPinCodeOperation = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_sendPinCodeOperation_args();
args.read(input);
input.readMessageEnd();
if (this._handler.sendPinCodeOperation.length === 1) {
Q.fcall(this._handler.sendPinCodeOperation, args.verifier)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_sendPinCodeOperation_result({success: result});
output.writeMessageBegin("sendPinCodeOperation", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_sendPinCodeOperation_result(err);
output.writeMessageBegin("sendPinCodeOperation", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("sendPinCodeOperation", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.sendPinCodeOperation(args.verifier, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_sendPinCodeOperation_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("sendPinCodeOperation", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("sendPinCodeOperation", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};
ChannelApplicationProvidedServiceProcessor.prototype.process_updateProfileAttributeForChannel = function(seqid, input, output) {
var args = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_args();
args.read(input);
input.readMessageEnd();
if (this._handler.updateProfileAttributeForChannel.length === 2) {
Q.fcall(this._handler.updateProfileAttributeForChannel, args.profileAttribute, args.value)
.then(function(result) {
var result_obj = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_result({success: result});
output.writeMessageBegin("updateProfileAttributeForChannel", Thrift.MessageType.REPLY, seqid);
result_obj.write(output);
output.writeMessageEnd();
output.flush();
}, function (err) {
var result;
if (err instanceof ttypes.TalkException) {
result = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_result(err);
output.writeMessageBegin("updateProfileAttributeForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("updateProfileAttributeForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result.write(output);
output.writeMessageEnd();
output.flush();
});
} else {
this._handler.updateProfileAttributeForChannel(args.profileAttribute, args.value, function (err, result) {
var result_obj;
if ((err === null || typeof err === 'undefined') || err instanceof ttypes.TalkException) {
result_obj = new ChannelApplicationProvidedService_updateProfileAttributeForChannel_result((err !== null || typeof err === 'undefined') ? err : {success: result});
output.writeMessageBegin("updateProfileAttributeForChannel", Thrift.MessageType.REPLY, seqid);
} else {
result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("updateProfileAttributeForChannel", Thrift.MessageType.EXCEPTION, seqid);
}
result_obj.write(output);
output.writeMessageEnd();
output.flush();
});
}
};