var ViewBuilder = require('./ViewBuilder')
var NATIVE_BRIDGE_NAME = "GetSocialCordova";
var ActivitiesViewBuilder = function(group, tags) {
this.group = null;
this.tags = null;
if((group == undefined) && (tags == undefined)) {
} else if(group != undefined) {
this.group = group;
if((tags != undefined) || (tags != null)) {
if(tags instanceof Array) {
this.tags = tags
} else {
this.tags = [];
this.tags.push(tags);
}
}
} else {
return null;
}
}
ActivitiesViewBuilder.prototype.show = function() {
var option = this.toJson();
if(this.group != null) {
option.group = this.group;
}
if(this.tags != null) {
option.tags = this.tags;
}
cordova.exec(null, null, NATIVE_BRIDGE_NAME, "createActivitiesView", [option]);
}
ActivitiesViewBuilder.prototype.close = function() {
var option = {}
cordova.exec(null, null, NATIVE_BRIDGE_NAME, "closeActivitiesView", [option]);
}
ActivitiesViewBuilder.prototype.__proto__ = ViewBuilder.prototype;
module.exports = ActivitiesViewBuilder;
h