# -*- coding: utf-8 -*-
#
#         Write header
#
# * Version: 1.21
# * Author: Harold Linke
# * Date: January 1st, 2020
# * Copyright: Harold Linke 2020
# *
# *
# * MobaLedCheckColors on Github: https://github.com/haroldlinke/MobaLedCheckColors
# *
# *
# * History of Change
# * V1.00 10.03.2020 - Harold Linke - first release
# *  
# * https://github.com/Hardi-St/MobaLedLib
# *
# * MobaLedCheckColors 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.
# *
# * MobaLedCheckColors 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/>.
# *
# *
# ***************************************************************************

class Dictionary():
    
    def __init__(self):
        self.data = {}
        self.Count = 0
        self.Keys = []
        pass
    
    def Exists(self,key):
        if self.data.get(key,None):
            return True
        else:
            return False
        
    def Add(self,key,value):
        self.data[key] = value
        self.Count = len(self.data)
        self.Keys = self.data.keys()
        
    def Get(self, key):
        return self.data[key]
        
    #def Count(self):
    #    len(self.data)
        
    #def Keys(self):
    #    self.data.keys()
        
    
