我试图在JSON对象中存储Web请求的规则,并且很难考虑良好的结构。下面是我的一些规则的例子: 可能条件下 the user must be logged in
the user must belong to an account of type [____]
the user must belong to an account named [___]
the user must have
我试图找出最佳的设计模式从知道太多关于它包含在父对象隔离的子对象。 对于子对象的方法例如,有这样的父类...
class Airplane {
var seats:Array
...
function removeSeat(seat:Seat) {
// find seat object in seats array and remove it