2024-01-12 23:17:34 +01:00
|
|
|
package meowlib
|
|
|
|
|
|
|
|
func (sc *ServerCard) GetUid() string {
|
2024-02-10 11:32:44 +01:00
|
|
|
if len(sc.Login) > 0 || len(sc.Password) > 0 {
|
|
|
|
return sc.Login + ":" + sc.Password + "@" + sc.Url
|
|
|
|
}
|
|
|
|
return sc.Url
|
2024-01-12 23:17:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (sc *ServerCard) IsSame(sc1 *ServerCard) bool {
|
|
|
|
return sc.GetUid() == sc1.GetUid()
|
|
|
|
}
|