Completed
Pull Request — master (#527)
by
unknown
03:02
created

AppInfo.setround_logo_url()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 2
rs 10
1
import json
0 ignored issues
show
Unused Code introduced by
The import json seems to be unused.
Loading history...
2
class AppInfo:
3
    def __init__(self, **kwargs):
4
        self.agentid = kwargs['agentid']
5
        self.name = kwargs['name']
6
        self.square_logo_url = kwargs['square_logo_url']
7
        self.round_logo_url = kwargs['round_logo_url']
8
9
    def setagentid(self, id):
0 ignored issues
show
Bug Best Practice introduced by
This seems to re-define the built-in id.

It is generally discouraged to redefine built-ins as this makes code very hard to read.

Loading history...
10
        self.agentid = id
11
12
    def setname(self, name):
13
        self.name = name
14
15
    def setsquare_logo_url(self, url):
16
        self.square_logo_url = url
17
18
    def setround_logo_url(self, url):
19
        self.round_logo_url = url
20
21
    def getagentid(self):
22
        return self.agentid
23
24
    def getname(self):
25
        return self.name
26
27
    def getsquare_logo_url(self):
28
        return self.square_logo_url
29
30
    def getround_logo_url(self):
31
        return self.round_logo_url
32