public string GetShareData(string key) { if (ShareDatas.ContainsKey(key)) { return(ShareDatas[key]); } else { return("1"); } }
public int RemoveShareData(string key) { if (ShareDatas.ContainsKey(key)) { ShareDatas.Remove(key); return(0); } else { return(1); } }
public int ChangeShareData(string key, string value) { if (ShareDatas.ContainsKey(key)) { ShareDatas[key] = value; return(0); } else { return(1); } }
public int ShareData(string key, string value) { if (!ShareDatas.ContainsKey(key)) { ShareDatas.Add(key, value); return(0); } else { return(1); } }