mirror of
https://github.com/Mibew/design.git
synced 2025-04-11 07:10:13 +03:00
34 lines
736 B
JavaScript
34 lines
736 B
JavaScript
/**
|
|
* @preserve This file is part of Mibew Messenger project.
|
|
* http://mibew.org
|
|
*
|
|
* Copyright (c) 2005-2011 Mibew Messenger Community
|
|
* License: http://mibew.org/license.php
|
|
*/
|
|
|
|
(function(Mibew){
|
|
/**
|
|
* Create an instance of thread
|
|
* @constructor
|
|
*/
|
|
Mibew.Thread = function(options) {
|
|
|
|
/**
|
|
* Id of the thread
|
|
* @type Number
|
|
*/
|
|
this.threadId = options.threadId || 0;
|
|
|
|
/**
|
|
* Thread's token. Uses for verify thread
|
|
* @type Number
|
|
*/
|
|
this.token = options.token || 0;
|
|
|
|
/**
|
|
* Last message id received by the thread
|
|
* @type Number
|
|
*/
|
|
this.lastId = options.lastId || 0;
|
|
}
|
|
})(Mibew); |