Refactored the config email and added a version field

This commit is contained in:
Pedro Beschorner Marin 2014-11-13 17:03:26 -02:00
parent abf099a0e7
commit 110b72f6c1
5 changed files with 19 additions and 7 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<config>
<admMail>helpdesk@bigbluebutton.org</admMail>
<version>VERSION</version>
<mail>MAIL</mail>
<downloadFilePath url="test_image.jpg"/>
<ports>
<port>

View File

@ -10,6 +10,7 @@ package org.bigbluebutton.clientcheck.model
function get serverUrl():Object;
function getPorts():XMLList;
function getRTMPApps():XMLList;
function getAdmMail():String;
function getVersion():String;
function getMail():String;
}
}

View File

@ -42,10 +42,16 @@ package org.bigbluebutton.clientcheck.model
return new XMLList(_config.rtmpapps).children();
}
public function getAdmMail():String
public function getVersion():String
{
var admMail:String = _config.admMail;
return admMail;
var version:String = _config.version;
return version;
}
public function getMail():String
{
var mail:String = _config.mail;
return mail;
}
}
}

View File

@ -35,7 +35,7 @@ package org.bigbluebutton.clientcheck.view.mainview
*/
private function mouseClickHandler(e:MouseEvent):void
{
var mailMsg:URLRequest = new URLRequest('mailto:' + config.getAdmMail());
var mailMsg:URLRequest = new URLRequest('mailto:' + config.getMail());
var variables:URLVariables = new URLVariables();
variables.subject = "BigBlueButton Client Check";
variables.body = dp.getAllDataAsString();

View File

@ -67,7 +67,9 @@ package org.bigbluebutton.clientcheck.view.mainview
private static var FAILED:String="Fail";
private static var SUCCEED:String="Succeed";
private static var LOADING:String="Loading..."
private static var LOADING:String="Loading...";
private static var VERSION:String="Version";
override public function initialize():void
{
@ -156,6 +158,8 @@ package org.bigbluebutton.clientcheck.view.mainview
dp.addData({Item: systemConfiguration.ports[j].portName, Result: null, Status: LOADING});
}
}
dp.addData({Item: VERSION, Result: config.getVersion(), Status: SUCCEED});
}
/**