Skip to content

Commit

Permalink
ES6: migrated "entity" (part 2) (#1195)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennycode authored May 9, 2017
1 parent 544a6d9 commit d2eea74
Show file tree
Hide file tree
Showing 7 changed files with 848 additions and 668 deletions.
29 changes: 0 additions & 29 deletions app/script/entity/Connection.coffee

This file was deleted.

34 changes: 34 additions & 0 deletions app/script/entity/Connection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Wire
* Copyright (C) 2017 Wire Swiss GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
*/

'use strict';

window.z = window.z || {};
window.z.entity = z.entity || {};

z.entity.Connection = class Connection {
constructor() {
this.conversation_id = null;
this.from = null;
this.last_update = null;
this.message = null;
this.status = ko.observable(z.user.ConnectionStatus.UNKNOWN);
this.to = null;
}
};
Loading

0 comments on commit d2eea74

Please sign in to comment.