Please solve the programming task below using a self-contained code snippet in a markdown code block.

Given a binary string s and a positive integer n, return true if the binary representation of all the integers in the range [1, n] are substrings of s, or false otherwise.
A substring is a contiguous sequence of characters within a string.
 
Please complete the following python code precisely:
```python
class Solution:
    def queryString(self, s: str, n: int) -> bool:
```