Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1 | 'use strict'; |
| 2 | import {Dictionary} from "app/utils"; |
| 3 | |
| 4 | export class SharingService { |
| 5 | |
| 6 | private uuidMap:Dictionary<string, string> = new Dictionary<string,string>(); |
| 7 | |
| 8 | public getUuidValue = (uniqueId:string):string => { |
| 9 | return this.uuidMap.getValue(uniqueId); |
| 10 | }; |
| 11 | |
| 12 | public addUuidValue = (uniqueId:string, uuid:string):void => { |
| 13 | this.uuidMap.setValue(uniqueId, uuid); |
| 14 | }; |
| 15 | |
| 16 | public getUuidMap = ():Dictionary<string, string> => { |
| 17 | return this.uuidMap; |
| 18 | }; |
| 19 | |
| 20 | } |