mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-05 21:02:47 +08:00
20 lines
316 B
JavaScript
20 lines
316 B
JavaScript
import Peer from './peer';
|
|
|
|
const User = Peer.extend({
|
|
serialize() {
|
|
const data = {
|
|
uuid: this.uuid,
|
|
public_ip: this.public_ip,
|
|
label: this.label,
|
|
avatarUrl: this.avatarUrl,
|
|
peer: {
|
|
id: this.get('peer.id'),
|
|
},
|
|
};
|
|
|
|
return data;
|
|
},
|
|
});
|
|
|
|
export default User;
|